﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BangChietTinh.aspx.cs" Inherits="DLV.BackEnd.Pages.BangChietTinh" EnableEventValidation="false" %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="DLV.Data.Entities" %>
<%@ Import Namespace="DLV.Library.Utilities" %>

<asp:content id="Content1" contentplaceholderid="placeHolderContent" runat="server">
    <link href="../js/jqueryui/base/jquery.ui.all.css" rel="stylesheet" />
    <link href="../css/addIcon.css" rel="stylesheet" type="text/css" />
    <style>
        .report {
            margin-top: 40px;
        }

        .head {
            width: 100%;
            overflow: hidden;
        }

            .head > .logo {
                width: 20%;
                float: left;
                margin-right: 1%;
            }

                .head > .logo img {
                    display: block;
                    margin: 0 auto;
                }

            .head > .table {
                width: 78%;
                float: right;
            }

                .head > .table > table {
                    width: 100%;
                    border-top: 1px solid #ccc;
                    border-left: 1px solid #ccc;
                    background-color: #FCFAFA;
                }

                    .head > .table > table th {
                        padding: 10px 0;
                        font-size: 20px;
                        border-bottom: 1px solid #ccc;
                        border-right: 1px solid #ccc;
                        background-color: #F2DCDB;
                        color: #1575bc;
                    }

                    .head > .table > table td {
                        padding: 7px;
                        border-bottom: 1px solid #ccc;
                        border-right: 1px solid #ccc;
                    }

        .service {
            margin-top: 0;
            padding: 8px;
            width: 98.5%;
        }

            .service > table {
                width: 100%;
                margin-bottom: 20px;
                border-top: 1px solid #ccc;
                border-left: 1px solid #ccc;
                background-color: #FCFAFA;
            }

                .service > table th {
                    padding: 5px 0;
                    border-bottom: 1px solid #ccc;
                    border-right: 1px solid #ccc;
                    background-color: #F2DCDB;
                }

                    .service > table th.first {
                        background-color: #92CDDC;
                        width: 8%;
                    }

                .service > table td {
                    padding: 7px;
                    border-bottom: 1px solid #ccc;
                    border-right: 1px solid #ccc;
                }

                .service > table .tr {
                    text-align: right;
                }

        div {
            margin: 0;
            padding: 0;
        }

        .classname {
            display: block;
        }

            .classname > li {
                list-style: none;
                display: block;
                border: 1px solid #ccc;
                width: 99%;
                height: 30px;
                background-color: #F4f4f4;
                font-size: 14px;
                line-height: 30px;
                font-weight: bold;
                padding-left: 10px;
                border-radius: 3px 0;
                text-transform: uppercase;
                margin-top: -15px;
                color: #1575bc;
                padding: 4px 0px 4px 8px;
            }

        #li-air {
            margin-top: 20px;
        }

        .add {
            border: none;
            background-color: white;
            width: 120px;
            height: 20px;
            background-image: url("../images/icon/add.png");
            background-repeat: no-repeat;
            text-align: right;
        }

        input[class^="btnUpdate"] {
            border: none;
            background-color: white;
            width: 20px;
            height: 20px;
            background-image: url("../images/icon/edit.png");
            background-repeat: no-repeat;
        }

        #btnUpdateTour {
            border: none;
            background-color: white;
            width: 80px;
            height: 20px;
            background-image: url("../images/icon/edit.png");
            background-repeat: no-repeat;
            text-align: right;
        }

        input[class^="btnDelete"] {
            border: none;
            background-color: white;
            width: 20px;
            height: 20px;
            background-image: url("../images/icon/delete.png");
            background-repeat: no-repeat;
        }

        #btnCloseTour, .cancel, input[id^="btnDelete"] {
            border: none;
            background-color: #E7E7D9;
            width: 55px;
            height: 20px;
            background-image: url("../images/icon/cancel.gif");
            background-repeat: no-repeat;
            text-align: right;
            margin-left: 20px;
        }

        #btnCloseTour {
            background-color: white;
        }

        #btnSaveTour, input[class^="btnInsert"], input[id^="btnInsert"] {
            border: none;
            background-color: white;
            width: 60px;
            height: 20px;
            background-image: url("../images/icon/save.png");
            background-repeat: no-repeat;
            text-align: right;
        }

        input[class^="btnInsert"], input[id^="btnInsert"] {
            background-color: #E7E7D9;
        }

        .note {
            border: none;
            background-color: white;
            width: 20px;
            height: 20px;
            background-image: url("../images/icon/tag_yellow.png");
            background-repeat: no-repeat;
        }

        .custom-combobox {
            position: relative;
            display: inline-block;
        }

        .custom-combobox-toggle {
            position: absolute;
            top: 0;
            bottom: 0;
            margin-left: -1px;
            padding: 0;
            /* support: IE7 */
            *height: 1.7em;
            *top: 0.1em;
        }

        .custom-combobox-input {
            margin: 0;
            padding: 0.3em;
        }

        .ui-autocomplete {
            z-index: 10003;
        }
    </style>

    <script src="../js/jqueryui/jquery-1.10.2.js"></script>
    <script src="../js/jqueryui/jquery.ui.core.js"></script>
    <script src="../js/jqueryui/jquery.ui.widget.js"></script>
    <script src="../js/jqueryui/jquery.ui.button.js"></script>
    <script src="../js/jqueryui/jquery.ui.position.js"></script>
    <script src="../js/jqueryui/jquery.ui.menu.js"></script>
    <script src="../js/jqueryui/jquery.ui.autocomplete.js"></script>
    <script src="../js/jqueryui/jquery.ui.tooltip.js"></script>
    <script src="../js/jqueryui/jquery.ui.datepicker.js"></script>
    
    <script src="/js/jquery.address.js"></script>
    <script src="../js/jquery.location.js"></script>
    <script src="../js/jquery.ChietTinhTour.js"></script>
    <script src="/js/jquery.ChietTinh.js"></script>
    <script src="/js/jquery.ChietTinhCar.js"></script>
    <script src="/js/jquery.ChietTinhStation.js"></script>
    <script src="/js/jquery.ChietTinhBaoHiem.js"></script>
    <script src="../js/jquery.ChietTinhEating.js"></script>
    <script src="../js/jquery.ChietTinhVisa.js"></script>
    <script src="../js/jquery.ChietTinhHoaHong.js"></script>
    <script src="../js/jquery.ChietTinhDichVuKhac.js"></script>
     <script src="../js/jquery.ChietTinhHDV.js"></script>
    <script src="/js/jquery.ChietTinhKhachSan.js"></script>
    <script src="../js/jquery.ChietTinhTau.js"></script>
    <script src="../js/jquery.ChietTinhQuaTang.js"></script>
    <%---------------------ngay thang------------------------------------%>
    <script type="text/javascript">
        $(function () {
            $("#<%= dteBeginDateTour.ClientID %>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
                onClose: function (selectedDate) {
                    $("#<%= dteEndDateTour.ClientID %>").datepicker("option", "minDate", selectedDate);
                }
            });
            $("#<%= dteEndDateTour.ClientID %>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
                onClose: function (selectedDate) {
                    $("#<%= dteBeginDateTour.ClientID %>").datepicker("option", "maxDate", selectedDate);
                }
            });
            $("#<%= dteGoDateAir.ClientID %>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
            });
            $("#<%= dteGoDateStation.ClientID %>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
            });
            $("#<%= dteGoDateCar.ClientID %>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
            });
            $("#<%= dteBeginDateInsurance.ClientID%>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
                onClose: function (selectedDate) {
                    $("#<%= dteEndDateInsurance.ClientID %>").datepicker("option", "minDate", selectedDate);
                }
            });
            $("#<%= dteEndDateInsurance.ClientID%>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
                onClose: function (selectedDate) {
                    $("#<%= dteBeginDateInsurance.ClientID %>").datepicker("option", "maxDate", selectedDate);
                }
            });

            $("#<%= dteBeginDateMenu.ClientID %>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
            });
            $("#<%= dteBeginDateDVK.ClientID %>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
            });
            $("#<%= dteBeginDateTravelGuide.ClientID %>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
                onClose: function (selectedDate) {
                    $("#<%= dteEndDateTravelGuide.ClientID %>").datepicker("option", "minDate", selectedDate);
                }
            });
            $("#<%= dteEndDateTravelGuide.ClientID %>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
                onClose: function (selectedDate) {
                    $("#<%= dteBeginDateTravelGuide.ClientID %>").datepicker("option", "maxDate", selectedDate);
                }
            });
            $("#<%= dteBeginDateHotel.ClientID%>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
                onClose: function (selectedDate) {
                    $("#<%= dteEndDateHotel.ClientID %>").datepicker("option", "minDate", selectedDate);
                }
            });


            $("#<%= dteEndDateHotel.ClientID%>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
                onClose: function (selectedDate) {
                    $("#<%= dteBeginDateHotel.ClientID %>").datepicker("option", "maxDate", selectedDate);
                }
            });
            $("#<%= dteBeginDateShip.ClientID%>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
                onClose: function (selectedDate) {
                    $("#<%= dteEndDateShip.ClientID %>").datepicker("option", "minDate", selectedDate);
                }
            });


            $("#<%= dteEndDateShip.ClientID%>").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                numberOfMonths: 1,
                dateFormat: "dd/mm/yy",
                onClose: function (selectedDate) {
                    $("#<%= dteBeginDateShip.ClientID %>").datepicker("option", "maxDate", selectedDate);
                }
            });
        });
    </script>
    <%---------------------autocomplete------------------------------------%>
    <script>
        (function ($) {
            $.widget("custom.combobox", {
                _create: function () {
                    this.wrapper = $("<span>")
                        .addClass("custom-combobox")
                        .insertAfter(this.element);

                    this.element.hide();
                    this._createAutocomplete();
                    this._createShowAllButton();
                },

                _createAutocomplete: function () {
                    var selected = this.element.children(":selected"),
                        value = selected.val() ? selected.text() : "";


                    this.input = $("<input>")
                        .appendTo(this.wrapper)
                        .val(value)
                        .attr("title", "")
                        .addClass("custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left")
                        .autocomplete({
                            delay: 0,
                            minLength: 0,
                            source: $.proxy(this, "_source")
                        })
                        .tooltip({
                            tooltipClass: "ui-state-highlight"
                        });

                    this._on(this.input, {
                        autocompleteselect: function (event, ui) {
                            ui.item.option.selected = true;
                            this._trigger("select", event, {
                                item: ui.item.option
                            });
                        },

                        autocompletechange: "_removeIfInvalid"
                    });
                },

                _createShowAllButton: function () {
                    var input = this.input,
                        wasOpen = false;

                    $("<a>")
                        .attr("tabIndex", -1)
                        .attr("title", "Show All Items")
                        .tooltip()
                        .appendTo(this.wrapper)
                        .button({
                            icons: {
                                primary: "ui-icon-triangle-1-s"
                            },
                            text: false
                        })
                        .removeClass("ui-corner-all")
                        .addClass("custom-combobox-toggle ui-corner-right")
                        .mousedown(function () {
                            wasOpen = input.autocomplete("widget").is(":visible");
                        })
                        .click(function () {
                            input.focus();

                            if (wasOpen) {
                                return;
                            }

                            input.autocomplete("search", "");
                        });
                },

                _source: function (request, response) {
                    var matcher = new RegExp($.ui.autocomplete.escapeRegex(request.term), "i");
                    response(this.element.children("option").map(function () {
                        var text = $(this).text();
                        if (this.value && (!request.term || matcher.test(text)))
                            return {
                                label: text,
                                value: text,
                                option: this
                            };
                    }));
                },

                _removeIfInvalid: function (event, ui) {

                    if (ui.item) {
                        return;
                    }

                    var value = this.input.val(),
                        valueLowerCase = value.toLowerCase(),
                        valid = false;
                    this.element.children("option").each(function () {
                        if ($(this).text().toLowerCase() === valueLowerCase) {
                            this.selected = valid = true;
                            return false;
                        }
                    });

                    if (valid) {
                        return;
                    }

                    this.input
                        .val("")
                        .attr("title", value + " didn't match any item")
                        .tooltip("open");
                    this.element.val("");
                    this._delay(function () {
                        this.input.tooltip("close").attr("title", "");
                    }, 2500);
                    this.input.data("ui-autocomplete").term = "";
                },
                select: function (event, ui) {
                    ui.item.option.selected = true;
                    self._trigger("selected", event, {
                        item: ui.item.option
                    });
                    select.trigger("change");
                },
                setValue: function (value) {
                    this.element.val(value);
                    this.input.val(value);
                },
                _destroy: function () {
                    this.wrapper.remove();
                    this.element.show();
                }
            });
        })(jQuery);
    </script>
    <%---------------------combobox------------------------------------%>
    <script>
        $(function () {
            $("#<%=ddlScheduleAir.ClientID%>").combobox();
            $("#<%=ddlConcernAir.ClientID%>").combobox();
            $("#<%=ddlTicketAir.ClientID%>").combobox();

            $("#<%=ddlScheduleCar.ClientID%>").combobox();
            $("#<%=ddlConcernCar.ClientID%>").combobox();

            $("#<%=ddlScheduleStation.ClientID%>").combobox();
            $("#<%=ddlConcernStation.ClientID%>").combobox();
            $("#<%=ddlTicketStation.ClientID%>").combobox();

            $("#<%=ddlNationalHotel.ClientID%>").combobox();
            $("#<%=ddlCityHotel.ClientID%>").combobox();
            $("#<%=ddlHotel.ClientID%>").combobox();

            $("#<%=ddlScheduleShip.ClientID%>").combobox();
            $("#<%=ddlNationalShip.ClientID%>").combobox();
            $("#<%=ddlCityShip.ClientID%>").combobox();
            $("#<%=ddlHotelShip.ClientID%>").combobox();

            $("#<%=ddlNationalMenu.ClientID%>").combobox();
            $("#<%=ddlCityMenu.ClientID%>").combobox();
            $("#<%=ddlRestaurantMenu.ClientID%>").combobox();

            $("#<%=ddlLocationTypeDVK.ClientID%>").combobox();
            $("#<%=ddlNationalDVK.ClientID%>").combobox();
            $("#<%=ddlCityDVK.ClientID%>").combobox();
            $("#<%=ddlLocationDVK.ClientID%>").combobox();
            $("#<%=ddlPartnerDVK.ClientID%>").combobox();
            $("#<%=ddlServiceDVK.ClientID%>").combobox();

            $("#<%=ddlLanguageTravelGuide.ClientID%>").combobox();

            $("#<%=ddlPartnerInsurance.ClientID%>").combobox();
            $("#<%=ddlInsurance.ClientID%>").combobox();

            $("#<%=ddlPartnerNameVisa.ClientID%>").combobox();
            $("#<%=ddlVisaTypeNameVisa.ClientID%>").combobox();
            $("#<%=ddlVisaNameVisa.ClientID%>").combobox();

            $("#<%=ddlGiftsType.ClientID%>").combobox();
            $("#<%=ddlGifts.ClientID%>").combobox();

        });
    </script>
    <div class="report">
        <div class="head">
            <div class="logo">
                <a href="http://dulichviet.com.vn"><img src="/images/logo.png" /></a>
            </div>    
            <div class="table">
                <table cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th colspan="4">BẢNG TÍNH GIÁ</th>
                    </tr>
                    <tr>
                        <td><b>Tên đoàn</b></td>
                        <td><%=tourInfo.TourName %></td>
                        <td><b>Code đoàn</b></td>
                        <td>DLV<%=tourInfo.TourId %></td>
                    </tr>
                    <tr>
                        <td><b>Loại hình đoàn</b></td>
                        <td><%=tourInfo.GroupType %></td>
                        <td><b>Loại tour</b></td>
                        <td><%=tourInfo.TourTypeName %></td>
                    </tr>
                    <tr>
                        <td><b>Điểm khởi hành</b></td>
                        <td><%=tourInfo.LocationName %></td>
                        <td><b>Hành trình</b></td>
                        <td><%=tourInfo.Schedule %></td>
                    </tr>
                    <tr>
                        <td><b>Số lượng khách</b></td>
                        <td class="edit-tourItem">
                            Người lớn:
                            <asp:Label class="lbTour" ID="lbQuantityAdultsTour" runat="server"></asp:Label> 
                            <asp:TextBox class="ctTour"  id="txtQuantityAdultsTour" runat="server" Width="50px"></asp:TextBox>
                            |
                            Trẻ em:
                            <asp:Label class="lbTour" ID="lbQuantityChildTour" runat="server"></asp:Label>
                            <asp:TextBox class="ctTour"  id="txtQuantityChildTour" runat="server" Width="50px"></asp:TextBox>
                            |
                             Trẻ nhỏ:
                            <asp:Label class="lbTour" ID="lbQuantityBabyTour" runat="server"></asp:Label>
                            <asp:TextBox class="ctTour"  id="txtQuantityBabyTour" runat="server" Width="50px"></asp:TextBox>
                        </td>
                        <td><b>Ngày khởi hành</b></td>
                        <td>
                            <asp:Label class="lbTour" ID="lbBeginDateTour" runat="server"></asp:Label>
                            
                            <asp:Label class="lbTour" ID="lbBeginHourTour" runat="server"></asp:Label>
                            
                            <asp:Label class="lbTour" ID="lbBeginMinuteTour" runat="server"></asp:Label>
                            <input class="ctTour" type="text" id="dteBeginDateTour" placeholder="Click để chọn ngày" readonly="readonly" runat="server" />
                            <asp:DropDownList class="ctTour" ID="ddlBeginHourTour" runat="server" Width="55px"></asp:DropDownList>
                            <asp:DropDownList class="ctTour" ID="ddlBeginMinuteTour" runat="server" Width="55px"></asp:DropDownList>
                        </td>
                    </tr>
                   <tr>
                        <td><b>Ngày kết thúc</b></td>
                        <td>
                            <asp:Label class="lbTour" ID="lbEndDateTour" runat="server"></asp:Label>
                            
                            <asp:Label class="lbTour" ID="lbEndHourTour" runat="server"></asp:Label>
                            
                            <asp:Label class="lbTour" ID="lbEndMinuteTour" runat="server"></asp:Label>
                            <input class="ctTour" type="text" id="dteEndDateTour" placeholder="Click để chọn ngày" readonly="readonly" runat="server" />
                            <asp:DropDownList class="ctTour" ID="ddlEndHourTour" runat="server" Width="55px"></asp:DropDownList>
                            <asp:DropDownList class="ctTour" ID="ddlEndMinuteTour" runat="server" Width="55px"></asp:DropDownList>
                        </td>
                       <td><b>Tổng số ngày</b></td>
                        <td>
                            <asp:Label class="lbTour" ID="lbTotalDayTour" runat="server"></asp:Label> 
                            <asp:TextBox class="ctTour" id="txtTotalDayTour" runat="server" Width="50px" ></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td><b>Tổng số đêm</b></td>
                        <td>
                            <asp:Label class="lbTour" ID="lbTotalNightTour" runat="server"></asp:Label> 
                            <asp:TextBox class="ctTour" id="txtTotalNightTour" runat="server" Width="50px" ></asp:TextBox>
                        </td>
                        <td><b>Mùa</b></td>
                        <td><%=tourInfo.Season %></td>
                    </tr>
                     <tr>
                        <td><b>Thị trường</b></td>
                        <td><%=tourInfo.MartName %></td>
                         <td colspan="2">
                            <input class="btnUpdateTour" id="btnUpdateTour"  type="button" value="Cập nhật" onclick="$('.edit-tourItem').show(); $('.display-tourItem').hide();"/>
               
                <asp:LinkButton class="ctTour" ID="lbtSave" runat="server" Text="" onclick="lbtSave_Click" CssClass="toolbar">
					<input class="ctTour" id="btnSaveTour" type="button" value="Lưu"  onclick="$('.edit-tourItem').hide()" />
                    </asp:LinkButton>
						 
				<asp:LinkButton class="ctTour" ID="lbtClose" runat="server" Text="" onclick="lbtClose_Click" 
                    CssClass="toolbar" CausesValidation="False">
					<input  class="ctTour" id="btnCloseTour" type="button" value="Hủy" />
				</asp:LinkButton>
                        </td>
                    </tr>
                   </table>
                
                						   
            </div>
        </div>
        <link href="../js/jqwidAdd/addTour/cssTour/addTour.css" rel="stylesheet" />
            <ul class="classname">
                <%-------------------------------------------------------------------------------------Máy bay-------------------%>
                <li id="li-air" ><a class="t_stt">1</a><span>CHIẾT TÍNH VÉ MÁY BAY</span><img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table cellpadding="0" cellspacing="0" border="0" id="table-air">
                
                    <tr>
                        <th rowspan="2">STT</th>
                        <th rowspan="2">HÀNH TRÌNH</th>
                        <th rowspan="2">NGÀY ĐI</th>
                        <th rowspan="2">LƯỢT BAY</th>
                        <th rowspan="2">NHÀ CUNG CẤP</th>
                        <th rowspan="2">VÉ</th>
                        <th colspan="3">GIÁ/HẠNG VÉ/KHOANG</th>
                        <th colspan="3">SỐ KHÁCH</th>
                        <th rowspan="2">TỔNG CHI PHÍ</th>
                        <th rowspan="2">VAT</th>
                        <th rowspan="2">GHI CHÚ</th>
                        <th rowspan="2" style="width: 50px">THAO TÁC</th>
                    </tr>
                    <tr>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                    </tr>
                
                    <% int iAir = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo calculatorAir in TicketAirs)
                       {
                           iAir++;
                    %>
                    <tr class="ListAir" id="ticket-air-<%=calculatorAir.CalculatorId %>">
                        <td><%=iAir%></td>
                        <td><%=calculatorAir.ScheduleName %></td>
                        <td><%=calculatorAir.DateBegin %></td>
                        <td><%=calculatorAir.FlightArrivals %></td>
                        <td><%=calculatorAir.ConcernFullName %></td>
                        <td><%=calculatorAir.TicketName %></td>
                        <td><%=calculatorAir.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorAir.PriceChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorAir.PriceBaby.ToString() %></td>
                        <td><%=calculatorAir.QuantityAdults %></td>
                        <td><%=calculatorAir.QuantityChild %></td>
                        <td><%=calculatorAir.QuantityBaby %></td>
                        <td><%=(calculatorAir.TotalPriceAir).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorAir.Vat %></td>
                        <td ></td>
                        <td>
                            <input class="btnUpdateAir"   onclick="openPopup('ticket-air'); " type="button" value="" calculatorid="<%=calculatorAir.CalculatorId %>" />
                            <input class="btnDeleteAir" onclick="fnc"  type="button" value="" calculatorid="<%=calculatorAir.CalculatorId %>" />
                            
                    </td>
                    </tr>
                    <% } %>
                    <tr id="new-ticket-air">
                        <td></td>
                        <td colspan="15"><b><input class="add" id="openPopupAir" onclick="openPopup('ticket-air')" type="button" value="Thêm lịch trình"/></b></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalTicketAirPricesAdults"><%=(int)TotalTicketAirPricesAdults%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                        <td class="tr" id="TotalTicketAirPricesChild"><%=(int)TotalTicketAirPricesChild %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                        <td class="tr" id="TotalTicketAirPricesBaby"><%=(int)TotalTicketAirPricesBaby %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalTicketAirPrices"><%=(int)TotalTicketAirPrices %></td>
                        <td id="TotalVatAir"><%=(int)TotalVatAir %></td>
                        <td></td>
                        <td></td>
                    </tr>
                </table>
                </div>
                <%-------------------------------------------------------------------------------------Xe------------------------%>
                <li id="li-car"><a class="t_stt">2</a><span>CHIẾT TÍNH XE HƠI</span><img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table id="table-car" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th>STT</th>
                        <th>HÀNH TRÌNH</th>
                        <th>NGÀY SD<br/> DỊCH VỤ</th>
                        <th>SỐ CHỖ/XE</th>
                        <th>HÃNG SẢN XUẤT</th>
                        <th>NĂM SẢN XUẤT</th>
                        <th>GIÁ</th>
                        <th>SỐ LƯỢNG<br/> XE</th>
                        <th>TỔNG CHI PHÍ</th>
                        <th>VAT</th>
                        <th>GHI CHÚ</th>
                        <th>THAO TÁC</th>
                    </tr>

                    <% int iCar = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo calculatorCar in TicketCars)
                       {
                           iCar++;%>
                    <tr class="ListCar" id="ticket-car-<%=calculatorCar.CalculatorId %>">
                        <td><%=iCar %></td>
                        <td><%=calculatorCar.ScheduleName %></td>
                        <td><%=calculatorCar.DateBegin %></td>
                        <td><%=calculatorCar.Time %></td>
                        <td><%=calculatorCar.ConcernFullName  %></td>
                        <td><%=calculatorCar.TicketType %></td>
                        <td><%=calculatorCar.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorCar.QuantityCar %></td>
                        <td><%=calculatorCar.TotalPriceCar.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorCar.Vat %></td>
                        <td ></td>
                        <td>
                            <input  class="btnUpdateCar" onclick="openPopup('ticket-car')" type="button" value="" calculatorid="<%=calculatorCar.CalculatorId %>" />
                            <input  class="btnDeleteCar"  type="button" value="" calculatorid="<%=calculatorCar.CalculatorId %>" />
                        </td>
                    </tr>
                    <% } %>
                    <tr id="new-ticket-car">
                        <td></td>
                        <td colspan="14"><b><input class="add" id="openPopupCar" onclick="openPopup('ticket-car')" type="button"  value="Thêm lịch trình" /></b></td>
                    </tr>
                    <tr>
                        <td colspan="8"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalTicketCarPricesAdults"><%=(int)TotalTicketCarPricesAdults %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="8"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                        <td class="tr" id="TotalTicketCarPricesChild"><%=(int)TotalTicketCarPricesChild %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="8"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalTicketCarPrices"><%=(int)TotalTicketCarPrices %></td>
                        <td id="TotalVatCar"><%=(int)TotalVatCar %></td>
                        <td></td>
                        <td></td>
                    </tr>
                </table> 
                </div>
                <%-------------------------------------------------------------------------------------TÀU HỎA-------------------%>
                <li id="li-station"><a class="t_stt">3</a><span>CHIẾT TÍNH VÉ TÀU HỎA</span><img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table id="table-station" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th rowspan="2">STT</th>
                        <th rowspan="2">HÀNH TRÌNH</th>
                        <th rowspan="2">NGÀY ĐI</th>
                        <th rowspan="2">LƯỢT ĐI</th>
                        <th rowspan="2">NHÀ CUNG CẤP</th>
                        <th rowspan="2">VÉ</th>
                        <th colspan="3">GIÁ/HẠNG VÉ/KHOANG</th>
                        <th colspan="3">SỐ KHÁCH</th>
                        <th rowspan="2">TỔNG CHI PHÍ</th>
                        <th rowspan="2">VAT</th>
                        <th rowspan="2">GHI CHÚ</th>
                        <th rowspan="2">THAO TÁC</th>
                    </tr>
                    <tr>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                    </tr>
                    <% int iStation = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo calculatorStation in TicketStations)
                       {
                           iStation++; %>
                    <tr class="ListStation" id="ticket-station-<%=calculatorStation.CalculatorId %>">
                        <td><%=iStation %></td>
                        <td><%=calculatorStation.ScheduleName %></td>
                        <td><%=calculatorStation.DateBegin %></td>
                        <td><%=calculatorStation.FlightArrivals %></td>
                        <td><%=calculatorStation.ConcernFullName %></td>
                        <td><%=calculatorStation.TicketName %></td>
                        <td><%=calculatorStation.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorStation.PriceChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorStation.PriceBaby.ToString() %></td>
                        <td><%=calculatorStation.QuantityAdults %></td>
                        <td><%=calculatorStation.QuantityChild %></td>
                        <td><%=calculatorStation.QuantityBaby %></td>
                        <td><%=(calculatorStation.TotalPriceAir).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorStation.Vat %></td>
                        <td ></td>
                        <td>
                            <input  class="btnUpdateStation" onclick="openPopup('ticket-station')"  type="button" value="" calculatorid="<%=calculatorStation.CalculatorId %>" />
                            <input  class="btnDeleteStation"  type="button" value="" calculatorid="<%=calculatorStation.CalculatorId %>" />
                        </td>
                    </tr>
                
                    <%} %>
                    <tr></tr>
                    <tr id="new-ticket-station">
                        <td></td>
                        <td colspan="16"><b><input class="add" id="openPopupStation" onclick="openPopup('ticket-station')" type="button"  value="Thêm lịch trình" /></b></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalTicketStationPricesAdults"><%=(int)TotalTicketStationPricesAdults%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                         <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                        <td class="tr" id="TotalTicketStationPricesChild"><%=(int)TotalTicketStationPricesChild %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                         <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                        <td class="tr" id="TotalTicketStationPricesBaby"><%=(int)TotalTicketStationPricesBaby %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalTicketStationPrices"><%=(int)TotalTicketStationPrices%></td>
                        <td id="TotalVatStation"><%=(int)TotalVatStation%></td>
                        <td></td>
                        <td></td>
                    </tr>
 
            </table>
                </div>
                <%-------------------------------------------------------------------------------------khach san-----------------%>
                <li id="li-hotel"><a class="t_stt">4</a>CHIẾT TÍNH LƯU TRÚ<img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table id="table-hotel" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th rowspan="2">STT</th>
                        <th rowspan="2">KHÁCH SẠN</th>
                        <th rowspan="2">NGÀY CHECK IN</th>
                        <th rowspan="2">NGÀY CHECK OUT</th>
                        <th rowspan="2">SỐ ĐÊM</th>
                        <th rowspan="2">LOẠI PHÒNG</th>
                        <th colspan="3">GIÁ PHÒNG</th>
                        <th colspan="3">SỐ LƯỢNG PHÒNG</th>
                        <th rowspan="2">TỔNG</th>
                        <th rowspan="2">VAT</th>
                        <th rowspan="2">GHI CHÚ</th>
                        <th rowspan="2">THAO TÁC</th>
                    </tr>
                    <tr>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                    </tr>

                    <% int iHotel = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo calculatorHotel in TicketHotel)
                       {
                           iHotel++;%>
                    <tr class="ListHotel" id="ticket-hotel-<%=calculatorHotel.CalculatorId%>">
                        <td><%=iHotel %></td>
                        <td><%=calculatorHotel.HotelFullName%></td>
                        <td><%=calculatorHotel.DateBegin.ToShortDateString()%></td>
                        <td><%=calculatorHotel.DateEnd.ToShortDateString()%></td>
                        <td><%=(calculatorHotel.DateEnd - calculatorHotel.DateBegin).Days%></td>
                        <td><%=calculatorHotel.RoomTypeName%></td>
                        <td><%=calculatorHotel.PriceAdults.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorHotel.PriceChild.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorHotel.PriceBaby.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorHotel.QuantityAdults%></td>
                        <td><%=calculatorHotel.QuantityChild%></td>
                        <td><%=calculatorHotel.QuantityBaby%></td>
                        <td><%=(calculatorHotel.TotalPriceHotel).ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorHotel.Vat%></td>
                        <td ></td>
                        <td>
                            <input  class="btnUpdateHotel" onclick="openPopup('ticket-hotel')" type="button" value="" calculatorid="<%=calculatorHotel.CalculatorId%>" />
                            <input class="btnDeleteHotel"  type="button" value="" calculatorid="<%=calculatorHotel.CalculatorId%>" />
                        </td>
                    </tr>
                
                    <%} %>
                    <tr></tr>
                     <tr id="new-ticket-Hotel">
                         <td></td>
                        <td colspan="15"><b><input class="add" id="openPopupHotel" onclick="openPopup('ticket-hotel')" type="button"  value="Thêm lịch trình" /></b></td>
                    </tr>
                    <tr>
                   
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalTicketHotelPricesAdults"><%=(int)TotalTicketHotelPricesAdults%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                    
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                        <td class="tr" id="TotalTicketHotelPricesChild"><%=(int)TotalTicketHotelPricesChild%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                    
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                        <td class="tr" id="TotalTicketHotelPricesBaby"><%=(int)TotalTicketHotelPricesBaby%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalTicketHotelPrices"><%=(int)TotalTicketHotelPrices%></td>
                        <td id="TotalVatHotel"><%=(int)TotalVatHotel%></td>
                        <td></td>
                        <td></td>
                    </tr>
            </table>
                </div>
                <%-------------------------------------------------------------------------------------tau thuy------------------%>
                <li id="li-ship"><a class="t_stt">5</a>CHIẾT TÍNH TÀU THỦY<img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table id="table-ship" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th rowspan="2">STT</th>
                        <th rowspan="2">LỊCH TRÌNH </th>
                        <th rowspan="2">TÀU</th>
                        <th rowspan="2">NGÀY CHECK IN</th>
                        <th rowspan="2">NGÀY CHECK OUT</th>
                        <th rowspan="2">SỐ ĐÊM</th>
                        <th rowspan="2">LOẠI TÀU</th>
                        <th colspan="3">GIÁ TÀU</th>
                        <th colspan="3">SỐ LƯỢNG PHÒNG</th>
                        <th rowspan="2">TỔNG</th>
                        <th rowspan="2">VAT</th>
                        <th rowspan="2">GHI CHÚ</th>
                        <th rowspan="2">THAO TÁC</th>
                    </tr>
                    <tr>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                    </tr>

                    <% int iShip = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo calculatorShip in TicketShip)
                       {
                           iShip++;%>
                    <tr class="ListShip" id="ticket-Ship-<%=calculatorShip.CalculatorId%>">
                        <td><%=iShip %></td>
                        <td><%=calculatorShip.ScheduleName %></td>
                        <td><%=calculatorShip.HotelFullName%></td>
                        <td><%=calculatorShip.DateBegin.ToShortDateString()%></td>
                        <td><%=calculatorShip.DateEnd.ToShortDateString()%></td>
                        <td><%=(calculatorShip.DateEnd - calculatorShip.DateBegin).Days%></td>
                        <td><%=calculatorShip.RoomTypeName%></td>
                        <td><%=calculatorShip.PriceAdults.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorShip.PriceChild.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorShip.PriceBaby.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorShip.QuantityAdults%></td>
                        <td><%=calculatorShip.QuantityChild%></td>
                        <td><%=calculatorShip.QuantityBaby%></td>
                        <td><%=(calculatorShip.TotalPriceHotel).ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorShip.Vat%></td>
                        <td ></td>
                        <td>
                            <input  class="btnUpdateShip" onclick="openPopup('ticket-ship')" type="button" value="" calculatorid="<%=calculatorShip.CalculatorId%>" />
                            <input  class="btnDeleteShip"  type="button" value="" calculatorid="<%=calculatorShip.CalculatorId%>" />
                        </td>
                    </tr>
                
                    <%} %>
                    <tr id="new-ticket-Ship">
                        <td></td>
                        <td colspan="16"><b><input class="add" id="openPopupShip" onclick="openPopup('ticket-ship')" type="button"  value="Thêm lịch trình" /></b></td>
                    </tr>
                    <tr>
                        <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalTicketShipPricesAdults"><%=(int)TotalTicketShipPricesAdults%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                        <td class="tr" id="TotalTicketShipPricesChild"><%=(int)TotalTicketShipPricesChild%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                        <td class="tr" id="TotalTicketShipPricesBaby"><%=(int)TotalTicketShipPricesBaby%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="13"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalTicketShipPrices"><%=(int)TotalTicketShipPrices%></td>
                        <td class="tr" id="TotalVatShip"><%=(int)TotalVatShip%></td>
                        <td></td>
                        <td></td>
                    </tr>
            </table> 
                </div>
                 <%-------------------------------------------------------------------------------------An Uống------------------%>
                <li id="li-restaurant"><a class="t_stt">6</a>CHIẾT TÍNH NHÀ HÀNG<img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table id="table-restaurant" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th rowspan="2">STT</th>
                        <th rowspan="2">NHÀ HÀNG</th>
                        <th rowspan="2">NGÀY SD DỊCH VỤ</th>
                        <th rowspan="2">BỬA ĂN</th>
                        <th rowspan="2">THỰC ĐƠN</th>
                        <th colspan="3">GIÁ/KHÁCH</th>
                        <th colspan="3">SỐ KHÁCH</th>
                        <th rowspan="2">TỔNG</th>
                        <th rowspan="2">VAT</th>
                        <th rowspan="2">GHI CHÚ</th>
                        <th rowspan="2">THAO TÁC</th>
                    </tr>
                    <tr>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN </th>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN </th>
                    </tr>

                    <% int iRestaurant = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo calculatorInfoMenu in RestaurantList)
                       {
                           iRestaurant++;%>
                    <tr class="ListMenu" id="menu-<%=calculatorInfoMenu.CalculatorId %>">
                        <td><%=iRestaurant %></td>
                        <td><%=calculatorInfoMenu.RestaurantFullName %></td>
                        <td><%=calculatorInfoMenu.DateBegin.ToShortDateString() %></td>
                        <td><%=calculatorInfoMenu.MenuTypeName%></td>
                        <td><%=calculatorInfoMenu.MenuName%></td>
                        <td><%=calculatorInfoMenu.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfoMenu.PriceChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfoMenu.PriceBaby.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfoMenu.QuantityAdults %></td>
                        <td><%=calculatorInfoMenu.QuantityChild %></td>
                        <td><%=calculatorInfoMenu.QuantityBaby %></td>
                        <td><%=(calculatorInfoMenu.TotalPriceAir).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfoMenu.Vat %></td>
                        <td ></td>
                        <td>
                            <input  class="btnUpdateMenu" type="button" onclick="openPopup('ticket-restaurant')" value="" calculatorid="<%=calculatorInfoMenu.CalculatorId %>" />
                            <input  class="btnDeleteMenu" type="button" value="" calculatorid="<%=calculatorInfoMenu.CalculatorId %>" />
                        </td>
                    </tr>
                    <%} %>
                    <tr></tr>
                    <tr id="new-Menu">
                        <td></td>
                        <td colspan="14"><b><input class="add" id="openPopupRestaurant" onclick="openPopup('ticket-restaurant')" type="button"  value="Thêm lịch trình" /></b></td>
                    </tr>
                    <tr>
                        <td colspan="11"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalMenuAdults"><%=(int)TotalMenuAdults %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="11"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                        <td class="tr" id="TotalMenuChild"><%=(int)TotalMenuChild %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="11"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                        <td class="tr" id="TotalMenuBaby"><%=(int)TotalMenuBaby %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="11"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalMenuPrices"><%=(int)TotalMenuPrices %></td>
                        <td id="TotalVatRestaurant"><%=(int)TotalVatRestaurant %></td> 
                        <td></td>
                        <td></td>
                    </tr>
                </table>
                </div>
                <%--------------------------------------------------------------------------------------Dich Vu Khac-------------%>
                <li id="li-service"><a class="t_stt">7</a>CHIẾT TÍNH DỊCH VỤ<img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table id="table-service" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th rowspan="2">STT</th>
                        <th rowspan="2">ĐỊA ĐIỂM</th>
                        <th rowspan="2">NHÀ CUNG CẤP</th>
                        <th rowspan="2">DỊCH VỤ</th>
                        <th rowspan="2">NGÀY SD DỊCH VỤ</th>
                        <th colspan="4">CHI PHÍ</th>
                        <th colspan="3">SỐ KHÁCH</th>
                        <th rowspan="2">TỔNG</th>
                        <th rowspan="2">VAT</th>
                        <th rowspan="2">GHI CHÚ</th>
                        <th rowspan="2">THAO TÁC</th>
                    </tr>
                    <tr>
                        <th>Đoàn</th>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN </th>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN </th>
                    </tr>

                    <% int iService = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo calculatorInfodv in ServiceList)
                       {
                           iService++;%>
                    <tr class="ListDvk" id="Dvk-<%=calculatorInfodv.CalculatorId %>">
                        <td><%=iService %></td>
                        <td><%=calculatorInfodv.BeginLocationName %></td>
                        <td><%=calculatorInfodv.PartnerName %></td>
                        <td><%=calculatorInfodv.ServiceName %></td>
                        <td><%=calculatorInfodv.DateBegin.ToShortDateString() %></td>
                        <td><%=calculatorInfodv.TranslateAdult.ToString() %></td>
                        <td><%=calculatorInfodv.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfodv.PriceChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfodv.PriceBaby.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfodv.QuantityAdults %></td>
                        <td><%=calculatorInfodv.QuantityChild %></td>
                        <td><%=calculatorInfodv.QuantityBaby %></td>
                        <td><%=(calculatorInfodv.TotalPriceService).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfodv.Vat %></td>
                        <td ></td>
                        <td>
                            <input  class="btnUpdateDvk" type="button" onclick="openPopup('ticket-service')" value="" calculatorid="<%=calculatorInfodv.CalculatorId %>" />
                            <input  class="btnDeleteDvk" type="button" value="" calculatorid="<%=calculatorInfodv.CalculatorId %>" />
                        </td>
                    </tr>
                    <%} %>
                    <tr id="new-Dvk">
                        <td></td>
                        <td colspan="15"><b><input class="add" id="openPopupService" onclick="openPopup('ticket-service')" type="button"  value="Thêm lịch trình" /></b></td>
                    </tr>                    
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalDvkAdults"><%=(int)TotalDVKAdults %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                        <td class="tr" id="TotalDvkChild"><%=(int)TotalDVKChild %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ </b></td>
                        <td class="tr" id="TotalDvkBaby"><%=(int)TotalDVKBaby %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalDvkPrices"><%=(int)TotalDVKPrices %></td>
                        <td id="TotalVatService"><%=(int)TotalVatService %></td>
                        <td></td>
                        <td></td>
                    </tr>
                </table>
                </div>
                <%--------------------------------------------------------------------------------------Huong dan vien-----------%>
                <li id="li-travel-guide"><a class="t_stt">8</a>CHIẾT TÍNH HƯỚNG DẪN VIÊN<img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table id="table-travel-guide" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th>STT</th>
                        <th>LOAI HDV</th>
                        <th>NGÀY KH</th>
                        <th>NGÀY<br/>KẾT THÚC</th>
                        <th>TỔNG SỐ NGÀY</th>
                        <th>NGOAI NGU</th>
                        <th>GIOI TINH</th>
                        <th>TRINH DO</th>
                        <th>HUONG DAN VIEN</th>
                        <th>TIỀN CÔNG</th>
                        <th>TIỀN TIP</th>
                        <th>CHI PHÍ Khac</th>
                        <th>TỔNG CHI PHÍ</th>
                        <th>VAT</th>
                        <th>GHI CHÚ</th>
                        <th>THAO TÁC</th>
                    </tr>
                    <% int iTravelGuide = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo travelGuideCashInfo in TravelGuideCashs)
                       {
                           iTravelGuide++;%>
                    <tr class="ListTravelGuide" id="TravelGuide-"<%=travelGuideCashInfo.CalculatorId %>>
                        <td><%=iTravelGuide %></td>
                        <td><%=travelGuideCashInfo.TravelGuideType %></td>
                        <td><%=travelGuideCashInfo.DateBegin.ToString("dd/MM/yyyy") %></td>
                        <td><%=travelGuideCashInfo.DateEnd.ToString("dd/MM/yyyy") %></td>
                        <td><%=(travelGuideCashInfo.DateEnd-travelGuideCashInfo.DateBegin).Days %></td>
                        <td><%=travelGuideCashInfo.LanguageName %></td>
                        <td><%=travelGuideCashInfo.Gender %></td>
                        <td><%=travelGuideCashInfo.Level %></td>
                        <td><%=travelGuideCashInfo.FullName %></td>
                        <td><%=travelGuideCashInfo.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=travelGuideCashInfo.PriceChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=travelGuideCashInfo.PriceBaby.ToString() %></td>
                        <td><%=travelGuideCashInfo.TotalPriceTravelGuide%></td>
                        <td><%=travelGuideCashInfo.Vat%></td>
                        <td ></td>
                        <td>

                            <input  class="btnUpdateTravelGuide" onclick="openPopup('ticket-travelGuide')" type="button" value="" calculatorid="<%=travelGuideCashInfo.CalculatorId %>" />
                            <input  class="btnDeleteTravelGuide"  type="button" value="" calculatorid="<%=travelGuideCashInfo.CalculatorId %>" />

                        </td>
                    </tr>
                    <% } %>
                    <tr id="new-travelGuide">
                        <td></td>
                        <td colspan="15"><b><input class="add" id="openPopupTravelGuide" onclick="openPopup('ticket-travelGuide')" type="button"  value="Thêm lịch trình" /></b></td>
                    </tr>
                     <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalTravelGuidePricesAdults"><%=(int)TotalTravelGuidePricesAdults %></td>
                        <td></td>
                        <td></td>
                         <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                        <td class="tr" id="TotalTravelGuidePricesChild"><%=(int)TotalTravelGuidePricesChild %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalTravelGuidePrices" ><%=(int)TotalTravelGuidePrices %></td>
                        <td  id="TotalVatTravelGuide" ><%=(int)TotalVatTravelGuide %></td>
                        <td></td>
                        <td></td>
                    </tr>
                </table>
                </div>
                <%--------------------------------------------------------------------------------------BAO HIEM-----------------%>
                <li id="li-insurance"><a class="t_stt">9</a>CHIẾT TÍNH BẢO HIỂM<img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table id="table-insurance" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th rowspan="2">STT</th>
                        <th rowspan="2">NHÀ CUNG CẤP</th>
                        <th rowspan="2">BẢO HIỂM</th>
                        <th rowspan="2">NGÀY<br/> BẮT ĐẦU</th>
                        <th rowspan="2">NGÀY<br/> HẾT HẠN</th>
                        <th rowspan="2">SỐ NGÀY<br/> BẢO HIỂM</th>
                        <th colspan="3">CHI PHÍ</th>
                        <th colspan="3">SỐ KHÁCH</th>
                        <th rowspan="2">TỔNG</th>
                        <th rowspan="2">VAT</th>
                        <th rowspan="2">GHI CHÚ</th>
                        <th rowspan="2">THAO TÁC</th>
                    </tr>
                    <tr>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                    </tr>

                    <% int iInsurance = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo calculatorInsurance in InsuranceList)
                       {
                           iInsurance++;%>
                    <tr class="ListInsurance" id="Insurance-<%=calculatorInsurance.CalculatorId%>">
                        <td><%=iInsurance %></td>
                        <td><%=calculatorInsurance.PartnerName%></td>
                        <td><%=calculatorInsurance.InsuranceName%></td>
                        <td><%=calculatorInsurance.DateBegin.ToShortDateString()%></td>
                        <td><%=calculatorInsurance.DateEnd.ToShortDateString()%></td>
                        <td><%=calculatorInsurance.CountNightHotel+1%></td>
                        <td><%=calculatorInsurance.PriceAdults.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorInsurance.PriceChild.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorInsurance.PriceBaby.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorInsurance.QuantityAdults%></td>
                        <td><%=calculatorInsurance.QuantityChild%></td>
                        <td><%=calculatorInsurance.QuantityBaby%></td>
                        <td><%=(calculatorInsurance.TotalPriceAir).ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorInsurance.Vat%></td>
                        <td ></td>
                        <td>
                            <input  class="btnUpdateInsurance" onclick="openPopup('ticket-insurance')"  type="button" value="" calculatorid="<%=calculatorInsurance.CalculatorId%>" />
                            <input  class="btnDeleteInsurance"  type="button" value="" calculatorid="<%=calculatorInsurance.CalculatorId%>" />
                        </td>
                    </tr>
                    <%} %>
                    <tr id="new-ticket-insurance">
                        <td></td>
                        <td colspan="15"><b><input class="add" id="openPopupInsurance" onclick="openPopup('ticket-insurance')" type="button"  value="Thêm lịch trình" /></b></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalInsurancePricesAdults"><%=(int)TotalInsurancePricesAdults%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                        <td class="tr" id="TotalInsurancePricesChild"><%=(int)TotalInsurancePricesChild%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                        <td class="tr" id="TotalInsurancePricesBaby"><%=(int)TotalInsurancePricesBaby%></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="12"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalInsurancePrices"><%=TotalInsurancePrices%></td>
                        <td  id="TotalVatInsurance"><%=TotalVatInsurance%></td>
                        <td></td>
                        <td></td>
                    </tr>
            </table>
                </div>
                <%---------------------------------------------------------------------------------------Visa--------------------%>
                <li id="li-visa"><a class="t_stt">10</a>CHIẾT TÍNH VISA<img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table id="table-visa" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th rowspan="2">STT</th>
                        <th rowspan="2">NHÀ CUNG CẤP</th>
                        <th rowspan="2">LOẠI VISA</th>
                        <th rowspan="2">VISA</th>
                        <th colspan="3">CHI PHÍ NL</th>
                        <th colspan="3">CHI PHÍ TRẺ EM</th>
                        <th colspan="3">CHI PHÍ TRẺ NHỎ</th>
                        <th colspan="3">SỐ KHÁCH</th>
                        <th rowspan="2">TỔNG</th>
                        <th rowspan="2">VAT</th>
                        <th rowspan="2">GHI CHÚ</th>
                        <th rowspan="2">THAO TÁC</th>
                    </tr>
                    <tr>
                        <th>LÃNH SỰ</th>
                        <th>DỊCH HỒ SƠ</th>
                        <th>CHI KHÁC</th>
                        <th>LÃNH SỰ</th>
                        <th>DỊCH HỒ SƠ</th>
                        <th>CHI KHÁC</th>
                        <th>LÃNH SỰ</th>
                        <th>DỊCH HỒ SƠ</th>
                        <th>CHI KHÁC</th>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN</th>
                    </tr>

                    <% int iVisa = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo calculatorInfoV in VisaList)
                       {
                           iVisa++;%>
                    <tr class="ListVisa" id="menu-<%=calculatorInfoV.CalculatorId %>">
                        <td><%=iVisa %></td>
                        <td><%=calculatorInfoV.PartnerName %></td>
                        <td><%=calculatorInfoV.VisaTypeName %></td>
                        <td><%=calculatorInfoV.VisaName %></td>
                        <td><%=calculatorInfoV.PriceAdults.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfoV.TranslateAdult.ToString("#,###", new CultureInfo("vi-VN"))  %></td>
                        <td><%=calculatorInfoV.OtherCostAdult.ToString("#,###", new CultureInfo("vi-VN"))%></td>

                        <td><%=calculatorInfoV.PriceChild.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorInfoV.TranslateChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfoV.OtherCostChild.ToString("#,###", new CultureInfo("vi-VN")) %></td>

                        <td><%=calculatorInfoV.PriceBaby.ToString("#,###", new CultureInfo("vi-VN"))%></td>
                        <td><%=calculatorInfoV.TranslateBaby.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfoV.OthercostBaby.ToString("#,###", new CultureInfo("vi-VN")) %></td>

                        <td><%=calculatorInfoV.QuantityAdults %></td>
                        <td><%=calculatorInfoV.QuantityChild %></td> 
                        <td><%=calculatorInfoV.QuantityBaby %></td> 
                        
                        <td><%=(calculatorInfoV.TotalPriceVisa).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorInfoV.Vat %></td>
                        <td ></td>
                        <td>
                            <input  class="btnUpdateVisa" type="button" onclick="openPopup('ticket-visa')" value="" calculatorid="<%=calculatorInfoV.CalculatorId %>" />
                            <input  class="btnDeleteVisa" type="button" value="" calculatorid="<%=calculatorInfoV.CalculatorId %>" />
                        </td>
                    </tr>
                    <%} %>
                    <tr id="new-Visa">
                        <td></td>
                        <td colspan="19"><b><input class="add" id="openPopupVisa" onclick="openPopup('ticket-visa')" type="button"  value="Thêm lịch trình" /></b></td>
                    </tr>
                    <tr>
                        <td colspan="16"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalVisaAdults"><%=(int)TotalVisaAdults %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="16"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM </b></td>
                        <td class="tr" id="TotalVisaChild"><%=(int)TotalVisaChild %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="16"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ </b></td>
                        <td class="tr" id="TotalVisaBaby"><%=(int)TotalVisaBaby %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                     <tr>
                        <td colspan="16"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalVisaPrices"><%=(int)TotalVisaPrices %></td>
                        <td  id="TotalVatVisa"><%=(int)TotalVatVisa %></td>
                        <td></td>
                        <td></td>
                    </tr>
                </table>
                </div>
                <%-------------------------------------------------------------------------------------- Qua tnag----------------%>
                <li id="li-gifts"><a class="t_stt">11</a>CHIẾT TÍNH QUÀ TẶNG<img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                    <table id="table-gifts" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <th rowspan="2" class="first">QUÀ TẶNG </th>
                            <th rowspan="2">LOẠI QUÀ TẶNG</th>
                            <th rowspan="2">TÊN QUÀ TẶNG</th>
                            <th rowspan="2">SỐ NGÀY</th>
                            <th colspan="3">QUÀ TẶNG/NGÀY</th>
                            <th colspan="3">CHI PHÍ</th>
                            <th colspan="3">SỐ KHÁCH</th>
                            <th rowspan="2">TỔNG</th>
                            <th rowspan="2">VAT</th>
                            <th rowspan="2">GHI CHÚ</th>
                            <th rowspan="2">THAO TÁC</th>
                        </tr>
                        <tr>
                            <th>NL</th>
                            <th>TE</th>
                            <th>TN</th>
                            <th>NL</th>
                            <th>TE</th>
                            <th>TN</th> 
                            <th>NL</th>
                            <th>TE</th>
                            <th>TN</th>
                        </tr>

                        <% foreach (DLV.Data.Entities.CalculatorInfo calculatorGifts in GiftsList)
                           { %>
                        <tr class="ListGifts" id="Gifts-<%=calculatorGifts.CalculatorId%>">
                            <td></td>
                            <td><%=calculatorGifts.GiftsTypeName %></td>
                            <td><%=calculatorGifts.GiftsName %></td>
                            <td><%=calculatorGifts.QuantityCar %></td>
                            <td><%=calculatorGifts.TranslateAdult %></td>
                            <td><%=calculatorGifts.TranslateChild %></td>
                            <td><%=calculatorGifts.TranslateBaby %></td>
                            <td><%=calculatorGifts.PriceAdults %></td>
                            <td><%=calculatorGifts.PriceChild %></td>
                            <td><%=calculatorGifts.PriceBaby %></td>
                            <td><%=calculatorGifts.QuantityAdults %></td>
                            <td><%=calculatorGifts.QuantityChild %></td>
                            <td><%=calculatorGifts.QuantityBaby %></td>
                            <td><%=calculatorGifts.TotalPriceGifts.ToString("#,###", new CultureInfo("vi-VN")) %></td>
                            <td><%=calculatorGifts.Vat %></td>
                            <td ></td>
                            <td>
                                <input  class="btnUpdateGifts"  type="button" onclick="openPopup('ticket-gifts')" value="" calculatorid="<%=calculatorGifts.CalculatorId%>" />
                                <input  class="btnDeleteGifts"  type="button" value="" calculatorid="<%=calculatorGifts.CalculatorId%>" />
                            </td>
                        </tr>
                
                        <%} %>
                        <tr></tr>
                        <tr id="new-ticket-gifts">
                            <td></td>
                            <td colspan="19"><b><input class="add" id="openPopupGifts" onclick="openPopup('ticket-gifts')" type="button"  value="Thêm lịch trình" /></b></td>
                        </tr>
                                
                        <tr>
                            <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH NGƯỜI LỚN</b></td>
                            <td class="tr" id="TotalGiftsAdults"><%=TotalGiftsPricesAdults.ToString()%></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                            <td class="tr" id="TotalGiftsChild"><%=TotalGiftsPricesChild.ToString()%></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="13"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                            <td class="tr" id="TotalGiftsBaby"><%=TotalGiftsPricesBaby.ToString()%></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="13"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                            <td class="tr" id="TotalGiftsPrices"><%=TotalGiftsPrices.ToString()%></td>
                            <td id="TotalVatGifts"><%=TotalVatGifts.ToString() %></td>
                        </tr>
                    </table>
                </div>
                <%-------------------------------------------------------------------------------------- Hoa Hong----------------%>
                <li id="li-commission"><a class="t_stt">12</a>CHIẾT TÍNH HOA HỒNG<img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                <table id="table-commission" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <th rowspan="2">STT</th>
                        <th rowspan="2">NGƯỜI NHẬN </th>
                        <th colspan="3">SÔ KHÁCH</th>
                        <th colspan="3">HOA HỒNG/KHÁCH</th>
                        <th rowspan="2">TỔNG PHÍ<br /> HOA HỒNG</th>
                        <th rowspan="2">VAT</th>
                        <th rowspan="2">GHI CHÚ</th>
                        <th rowspan="2">THAO TÁC</th>
                    </tr>
                    <tr>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN </th>
                        <th>NL</th>
                        <th>TE</th>
                        <th>TN </th>
                    </tr>

                    <% int iCommission = 0;
                       foreach (DLV.Data.Entities.CalculatorInfo calculatorListHH in CommissionList)
                       {
                           iCommission++;%>
                    <tr class="ListHH" id="HH-<%=calculatorListHH.CalculatorId %>">
                        <td><%=iCommission %></td>
                        <td><%=calculatorListHH.TravelGuideType %></td>
                        <td><%=calculatorListHH.QuantityAdults %></td>
                        <td><%=calculatorListHH.QuantityChild %></td>
                        <td><%=calculatorListHH.QuantityBaby %></td>
                        <td><%=calculatorListHH.PriceAdults %></td>
                        <td><%=calculatorListHH.PriceChild %></td>
                        <td><%=calculatorListHH.PriceBaby %></td>
                        <td><%=(calculatorListHH.TotalPriceAir).ToString("#,###", new CultureInfo("vi-VN")) %></td>
                        <td><%=calculatorListHH.Vat %></td>
                        <td ></td>
                        <td>
                            <input  class="btnUpdateHH" onclick="openPopup('ticket-commission')" type="button" value="" calculatorid="<%=calculatorListHH.CalculatorId %>" />
                            <input  class="btnDeleteHH" type="button" value="" calculatorid="<%=calculatorListHH.CalculatorId %>" />
                        </td>
                    </tr>

                    <%} %>
                    <tr id="new-HH">
                        <td></td>
                        <td colspan="15"><b><input class="add" id="openPopupCommission" onclick="openPopup('ticket-commission')" type="button"  value="Thêm lịch trình" /></b></td>
                    </tr>
                    <tr>
                        <td colspan="8"><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                        <td class="tr" id="TotalHHAdults"><%=(int)TotalHHAdults %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                    
                        <td colspan="8"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                        <td class="tr" id="TotalHHChild"><%=(int)TotalHHChild %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                    
                        <td colspan="8"><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                        <td class="tr" id="TotalHHBaby"><%=(int)TotalHHBaby %></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="8"><b>TỔNG CHI PHÍ ĐOÀN</b></td>
                        <td class="tr" id="TotalHHPrices"><%=(int)TotalHHPrices %></td>
                        <td  id="TotalVatCommission"><%=(int)TotalVatCommission %></td>
                        <td></td>
                        <td></td>
                    </tr>
                </table>
                </div>
                <%---------------------------------------------------------------------------------------tong--------------------%>
                <li id="li-calculator"><a class="t_stt">13</a>CHIẾT TÍNH<img src="../images/icon/down.png" style="float:right;margin-top: 5px; margin-right:20px;"/></li>
                <div class="service">
                    <table class="table-calculator" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <th style="width:400px;text-align:left" colspan="2" class="first">TỔNG CHI PHÍ MUA DỊCH VỤ ĐẦU VÀO</th>
                            <th>TỔNG CHI PHÍ</th>
                            <th>VAT</th>
                            <th>GHI CHÚ</th>
                        </tr>
                        <tr>
                            <th rowspan="4">GIÁ NET MUA VÀO</th>
                            <td><b>TỔNG CHI PHÍ/ KHÁCH NL</b></td>
                            <td id="TotalPriceCaculatorAdults"></td>
                            <td></td>
                            <td><input class="note" onclick="openPopup('profit-note1')" type="button" value=""/></td>
                        </tr>
                        <tr>
                            <td><b>TỔNG CHI PHÍ/ KHÁCH TRẺ EM</b></td>
                            <td id="TotalPriceCaculatorChild"></td>
                            <td></td>
                            <td><input class="note" onclick="openPopup('profit-note2')" type="button" value=""/></td>
                        </tr>
                         <tr>
                            <td><b>TỔNG CHI PHÍ/ KHÁCH TRẺ NHỎ</b></td>
                            <td id="TotalPriceCaculatorBaby"></td>
                            <td></td>
                            <td><input class="note" onclick="openPopup('profit-note3')" type="button" value=""/></td>
                        </tr>
                         <tr>
                    
                            <td><b>TỔNG GIÁ BÁN ĐOÀN</b></td>
                            <td id="TotalPriceCaculator"></td>
                            <td id="TotalVatCaculator"></td>
                            <td><input class="note" onclick="openPopup('profit-note4')" type="button" value=""/></td>
                        </tr>
                    </table>
                    <table class="table-calculator" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <th colspan="2" style="width:200px;text-align:left" class="first">CHI PHÍ QUẢN LÝ</th>
                            
                            <th style="width:170px" >CHI PHÍ/ KHÁCH</th>
                            <th>TỔNG CHI PHÍ</th>
                            <th>VAT</th>
                            <th>GHI CHÚ</th>
                        </tr>
                        <tr>
                            <td rowspan="3"></td>
                            <td><b>CHÊNH LỆCH THUẾ VAT (TỔNG VAT XUẤT RA - TỔNG VAT DỊCH VỤ MUA VÀO)</b></td>
                            <td></td>
                            <td id="ChenhLechVat"></td>
                            <td></td>
                            <td><input class="note"  onclick="openPopup('profit-note5')" type="button" value=""/></td>
                        </tr>
                        <tr>
                            <td><b>CHI PHÍ QUẢN LÝ DOANH NGHIỆP</b></td>
                            <td><asp:TextBox ID="ChiPhiQuanLyDoanhNghiep" runat="server" Width="150"></asp:TextBox></td>
                            <td id="ChiPhiQuanLy"></td>
                            <td></td>
                            <td><input class="note"  onclick="openPopup('profit-note6')" type="button" value=""/></td>
                        </tr>
                        <tr>
                            <td><b>THUẾ THU NHẬP DOANH NGHIỆP</b></td>
                            <td></td>
                            <td id="ThueThuNhap"></td>
                            <td></td>
                            <td><input  class="note"  onclick="openPopup('profit-note7')" type="button" value=""/></td>
                        </tr>
                    </table>
                    <table class="table-calculator" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <th colspan="2" style="width:200px;text-align:left" class="first">GIÁ BÁN</th>
                            <th style="width:70px">%</th>
                            <th>TỔNG CHI PHÍ</th>
                            <th>VAT</th>
                            <th>GHI CHÚ</th>
                        </tr>
                        <tr>
                            <th rowspan="4">GIÁ BÁN</th>
                            <td><b>TỔNG GIÁ BÁN/ KHÁCH NL</b></td>
                            <td><asp:TextBox ID="TotalSalePriceCaculatorAdults" runat="server" Width="50"></asp:TextBox></td>
                            <td id="TotalSaleCaculatorAdults"></td>
                            <td></td>
                            <td><input class="note"  onclick="openPopup('profit-note8')" type="button" value=""/></td>
                        </tr>
                        <tr>
                            <td><b>TỔNG GIÁ BÁN/ KHÁCH TRẺ EM</b></td>
                            <td><asp:TextBox ID="TotalSalePriceCaculatorChild" runat="server" Width="50"></asp:TextBox></td>
                            <td id="TotalSaleCaculatorChild"></td>
                            <td></td>
                            <td><input class="note"  onclick="openPopup('profit-note9')" type="button" value=""/></td>
                        </tr>
                         <tr>                    
                            <td><b>TỔNG GIÁ BÁN/ KHÁCH TRẺ NHỎ</b></td>
                            <td><asp:TextBox ID="TotalSalePriceCaculatorBaby" runat="server" Width="50"></asp:TextBox></td>
                            <td id="TotalSaleCaculatorBaby"></td>
                            <td></td>
                            <td><input class="note"  onclick="openPopup('profit-note10')" type="button" value=""/></td>
                        </tr>
                         <tr>
                            <td><b>TỔNG GIÁ BÁN ĐOÀN</b></td>
                            <td><asp:TextBox ID="TotalSalePriceCaculator" runat="server" Width="50"></asp:TextBox></td>
                            <td id="TotalSaleCaculator"></td>
                            <td id="TotalSaleVatCaculator"></td>
                            <td><input class="note"  onclick="openPopup('profit-note11')" type="button" value=""/></td>
                        </tr>
                    </table>
                    <table class="table-calculator" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <th colspan="2" style="width:200px;text-align:left"  class="first">LÃI GỘP</th>
                            <th>TỔNG CHI PHÍ</th>
                            <th>VAT</th>
                            <th>GHI CHÚ</th>
                        </tr>
                        <tr>
                            <th rowspan="4">LỢI NHUẬN</th>
                            <td><b>TỔNG LỢI NHUẬN/ KHÁCH NL</b></td>
                            <td id="ProfitCaculatorAdults"></td>
                            <td></td>
                            <td><input class="note"  onclick="openPopup('profit-note12')" type="button" value=""/></td>
                        </tr>
                        <tr>
                            <td><b>TỔNG LỢI NHUẬN/ KHÁCH TRẺ EM</b></td>
                            <td id="ProfitCaculatorChild"></td>
                            <td></td>
                            <td><input class="note"  onclick="openPopup('profit-note13')" type="button" value=""/></td>
                        </tr>
                        <tr>
                            <td><b>TỔNG LỢI NHUẬN/ KHÁCH TRẺ NHỎ</b></td>
                            <td id="ProfitCaculatorBaby"></td>
                            <td></td>
                            <td><input class="note"  onclick="openPopup('profit-note14')" type="button" value=""/></td>
                        </tr>
                        <tr>
                            <td><b>TỔNG LỢI NHUẬN ĐOÀN</b></td>
                            <td id="ProfitCaculator"></td>
                            <td></td>
                            <td><input class="note"  onclick="openPopup('profit-note15')" type="button" value=""/></td>
                        </tr>
                        <tr>
                            <td colspan="2" style="width:200px;text-align:left"><b>LÃI RÒNG ĐOÀN</b></td>
                            <td  id="LaiRongDoan"></td>
                            <td  ></td>
                            <td  ><input class="note"  onclick="openPopup('profit-note16')" type="button" value=""/></td>
                        </tr>
                    </table>
                </div>
            </ul>
    </div>
   <%----------------------------------------------------------------------------------------------------Popup-------------------%>
    <link href="/css/popup.css" rel="stylesheet" />
        <script src="/js/jquery.popup.js"></script>
        <div class="popup-wrapper"></div>
    <%-------------------------------------------------------------popup may bay------------------------%>
        <div class="popup-main popup-ticket-air">         
            <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/Sua chiết tính vé máy bay<span class="close_search" onclick="closePopup('ticket-air')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    
                    <table class="adminform ticket-air">
                   <tr >
                            <td>Hành trình: </td>
                            <td ><select id="ddlScheduleAir" class="Air" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Ngày đi: </td>
                            <td ><input type="text" id="dteGoDateAir" placeholder="Click để chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Lượt bay: </td>
                            <td ><asp:DropDownList ID="ddlFlightArrivalsAir" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Hãng hàng không: </td>
                            <td ><select id="ddlConcernAir" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Vé: </td>
                            <td ><select id="ddlTicketAir" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Giá vé NL: </td>
                            <td ><asp:TextBox id="txtPriceAdultAir" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá vé trẻ em: </td>
                            <td ><asp:TextBox id="txtPriceChildAir" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá vé trẻ nhỏ: </td>
                            <td ><asp:TextBox id="txtPriceBabyAir" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng NL: </td>
                            <td ><asp:TextBox id="txtQuantityAdultsAir" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng trẻ em: </td>
                            <td ><asp:TextBox id="txtQuantityChildAir" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng trẻ nhỏ: </td>
                            <td ><asp:TextBox id="txtQuantityBabyAir" runat="server" ></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí: </td>
                            <td ><asp:TextBox id="txtTotalPriceAir" runat="server"></asp:TextBox></td>
                        </tr>
                         <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox id="txtVatAir" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú: </td>
                            <td><asp:TextBox ID="txtNoteAir" runat="server" TextMode="MultiLine" Width="390px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td id="toolbar-save" class="button">
                                <input class="save"  id="btnInsertAir" type="button" value="" calculatorid="-1"/>
                                <input  id="btnDeleteAir" class="btnDeleteAir"  type="button" value="Hủy" calculatorid="-1" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
                </div>
        
    </div>  
    <%-------------------------------------------------------------popup xe------------------------%>
        <div class="popup-main popup-ticket-car">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/Sua chiết tính xe<span class="close_search" onclick="closePopup('ticket-car')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    <table >
                        <tr >
                            <td>Hành trình: </td>
                            <td ><select id="ddlScheduleCar" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Ngày đi: </td>
                            <td><input type="text" id="dteGoDateCar" placeholder="Click để chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Số chỗ: </td>
                            <td class="tr"><asp:DropDownList ID="ddlSoChoCar" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Hiệu xe: </td>
                            <td ><select id="ddlConcernCar" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Năm sản xuất: </td>
                            <td class="tr"><asp:DropDownList ID="ddlYearCar" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Giá: </td>
                            <td class="tr"><asp:TextBox id="txtPriceCar" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng: </td>
                            <td class="tr"><asp:TextBox id="txtQuantityCar" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí: </td>
                            <td class="tr"><asp:TextBox id="txtTotalPriceCar" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox id="txtVatCar" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú: </td>
                           <td><asp:TextBox id="txtNoteCar" TextMode="MultiLine" runat="server" Width="390px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td  class="button">
						         <input  id="btnInsertCar" type="button" value="Thêm" calculatorid="-1"/>
                                <input id="btnDeleteCar" class="btnDeleteCar"  type="button" value="Hủy" calculatorid="-1" />
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div> 
    <%-------------------------------------------------------------popup tau hoa------------------------%>
        <div class="popup-main popup-ticket-station">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/sua chiết tính vé tau hoa<span class="close_search" onclick="closePopup('ticket-station')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    <table >
                        <tr >
                            <td>Hành trình: </td>
                            <td ><select id="ddlScheduleStation" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Ngày đi: </td>
                             <td ><input type="text" id="dteGoDateStation" placeholder="Click để chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Lượt đi: </td>
                            <td ><asp:DropDownList ID="ddlFlightArrivalsStation" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Hãng tàu: </td>
                            <td ><select id="ddlConcernStation" runat="server"> </select></td>v
                        </tr>
                        <tr>
                            <td>Vé: </td>
                            <td ><select id="ddlTicketStation" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Giá vé NL: </td>
                            <td ><asp:TextBox id="txtPriceAdultsStation" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá vé trẻ em:</td>
                            <td ><asp:TextBox id="txtPriceChildStation" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá vé trẻ nhỏ: </td>
                            <td ><asp:TextBox id="txtPriceBabyStation" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng NL: </td>
                            <td ><asp:TextBox id="txtQuantityAdultsStation" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng trẻ em: </td>
                            <td ><asp:TextBox id="txtQuantityChildStation" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng trẻ nhỏ: </td>
                            <td ><asp:TextBox id="txtQuantityBabyStation" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí: </td>
                            <td ><asp:TextBox id="txtTotalPriceStation" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox id="txtVatStation" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú</td>
                            <td><asp:TextBox ID="txtNoteStation" runat="server" TextMode="MultiLine" Width="390px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td  class="button">
						         <input class="save"  id="btnInsertStation" type="button" value="" calculatorid="-1"/>
                                <input  id="btnDeleteStation" class="btnDeleteStation"  type="button" value="Hủy" calculatorid="-1" />
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>      
    <%-------------------------------------------------------------popup dich khach san------------------------%>
        <div class="popup-main popup-ticket-hotel">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/sua chiết tính khach san<span class="close_search" onclick="closePopup('ticket-hotel')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    <table >
                        <tr >
                            <td>Loại khách sạn: </td>
                            <td><asp:DropDownList ID="ddlHotelType" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Quốc gia: </td>                             
                            <td ><select id="ddlNationalHotel" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Tỉnh/ thành phố: </td>
                            <td ><select id="ddlCityHotel" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Khách sạn: </td>
                            <td ><select id="ddlHotel" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Ngày CheckIn:</td>
                           <td><input type="text" id="dteBeginDateHotel" placeholder="Clic chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Ngày CheckOut:</td>
                            <td><input type="text" id="dteEndDateHotel" placeholder="Click chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Số đêm: </td>
                            <td><asp:Label runat="server" ID="lbCountNightHotel"></asp:Label></td>
                        </tr>
                        <tr>
                            <td>Loại phòng: </td>
                             <td><asp:DropDownList ID="ddlRoomTypeHotel" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Giá phòng NL: </td>
                            <td><asp:TextBox id="txtPriceAdultsRoomHotel" runat="server"></asp:TextBox></td>
                    
                        </tr>
                        <tr>
                            <td>Giá phòng trẻ em: </td>
                             <td><asp:TextBox id="txtPriceChildsRoomHotel" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá phòng trẻ nhỏ: </td>
                             <td><asp:TextBox id="txtPriceBabyRoomHotel" runat="server" ></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số phòng NL: </td>
                             <td><asp:TextBox id="txtQuantityAdultsHotel" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số phòng trẻ em: </td>
                            <td><asp:TextBox id="txtQuantityChildHotel" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số phòng trẻ nhỏ: </td>
                            <td><asp:TextBox id="txtQuantityBabyHotel" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí: </td>
                            <td><asp:Label id="lbTotalPriceRoomHotel" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox ID="txtVATHotel" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú: </td>
                            <td><asp:TextBox id="txtNoteHotel" TextMode="MultiLine" runat="server" Width="390px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="button">
						         <input  id="btnInsertHotel" class="btnsave" type="button" value="Thêm" calculatorid="-1"/>
                                <input id="btnDeleteHotel" class="btnDeleteHotel"  type="button" value="Hủy" calculatorid="-1" />
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <%-------------------------------------------------------------popup dich tau thuy------------------------%>
        <div class="popup-main popup-ticket-ship">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/sua chiết tính tau thuy<span class="close_search" onclick="closePopup('ticket-ship')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr >
                            <td>Loại tàu: </td>
                             <td><asp:DropDownList ID="ddlHotelTypeShip" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr >
                            <td>Lịch trình: </td>
                            <td ><select id="ddlScheduleShip" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Quốc gia: </td>
                            <td ><select id="ddlNationalShip" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Tỉnh/thành phố:</td>
                            <td ><select id="ddlCityShip" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Tàu:</td>
                            <td ><select id="ddlHotelShip" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Ngày CheckIn:</td>
                            <td><input type="text" id="dteBeginDateShip" placeholder="Clic chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Ngày CheckOut:</td>
                            <td><input type="text" id="dteEndDateShip" placeholder="Click chọn ngày" readonly="readonly" runat="server" /></td></tr>
                        <tr>
                            <td>Số đêm:</td>
                            <td><asp:Label runat="server" ID="lbCountNightShip"></asp:Label></td>
                        </tr>
                        <tr>
                            <td>Loại phòng:</td>
                            <td><asp:DropDownList ID="ddlRoomTypeShip" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Giá phòng NL:</td>
                            <td><asp:TextBox id="txtPriceAdultsRoomShip" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá phòng trẻ em: </td>
                            <td><asp:TextBox id="txtPriceChildsRoomShip" runat="server"></asp:TextBox></td>
                    
                        </tr>
                        <tr>
                            <td>Giá phòng trẻ nhỏ: </td>
                             <td><asp:TextBox id="txtPriceBabyRoomShip" runat="server"></asp:TextBox></td>
                   
                        </tr>
                        <tr>
                            <td>Số phòng người lớn:</td>
                            <td><asp:TextBox id="txtQuantityAdultsShip" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số phòng trẻ em: </td>
                            <td><asp:TextBox id="txtQuantityChildShip" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số phòng trẻ nhỏ: </td>
                            <td><asp:TextBox id="txtQuantityBabyShip" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí: </td>
                            <td><asp:Label id="lbTotalPriceRoomShip" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox ID="txtVATShip" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú</td>
                            <td><asp:TextBox id="txtNoteShip" TextMode="MultiLine" runat="server" Width="390px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td  class="button">
						         <input  id="btnInsertShip" class="btnsave" type="button" value="Thêm" calculatorid="-1"/>
                                <input id="btnDeleteShip" class="btnDeleteShip"  type="button" value="Hủy" calculatorid="-1" />
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <%-------------------------------------------------------------popup an uong------------------------%>
        <div class="popup-main popup-ticket-restaurant">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm chiết tính nha hang<span class="close_search" onclick="closePopup('ticket-restaurant')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    <table >
                        <tr >
                            <td>Loại nhà hàng: </td>
                            <td><asp:DropDownList ID="ddlRestaurantTypeMenu" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Quốc gia: </td>
                            <td ><select id="ddlNationalMenu" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Tỉnh/ thành phố: </td>
                            <td ><select id="ddlCityMenu" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Nhà hàng: </td>
                            <td ><select id="ddlRestaurantMenu" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Ngày: </td>
                              <td><input type="text" id="dteBeginDateMenu" placeholder="Click để chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Buổi ăn: </td>
                             <td><asp:DropDownList ID="ddlMenuTypeMenu" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Thực đơn: </td>
                            <td><asp:DropDownList ID="ddlMenuMenu" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Giá NL: </td>
                            <td><asp:TextBox ID="txtPriceAdultsMenu" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá trẻ em: </td>
                            <td><asp:TextBox ID="txtPriceChildsMenu" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá trẻ nhỏ:</td>
                            <td><asp:TextBox ID="txtPriceBabyMenu" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng người lớn: </td>
                            <td><asp:TextBox ID="txtQuantityAdultsMenu" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng trẻ em:  </td>
                            <td><asp:TextBox ID="txtQuantityChildMenu" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng trẻ nhỏ: </td>
                            <td><asp:TextBox ID="txtQuantityBabyMenu" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí: </td>
                            <td><asp:TextBox ID="txtTotalPriceMenu" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox ID="txtVATMenu" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú: </td>
                            <td><asp:TextBox ID="txtNoteRestaurant" TextMode="MultiLine" runat="server" Width="390px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td  class="button">
                                <input id="btnInsertMenu" type="button" value="Thêm" calculatorid="-1" />
                                <input id="btnDeleteMenu" class="btnDeleteMenu" type="button" value="Hủy" calculatorid="-1" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>  
    <%-------------------------------------------------------------popup dich vu khac------------------------%>
        <div class="popup-main popup-ticket-service">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/sua chiết tính dich vu<span class="close_search" onclick="closePopup('ticket-service')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    <table >
                        <tr>
                            <td>Ngay</td>
                            <td><input type="text" id="dteBeginDateDVK" placeholder="Click để chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr >
                            <td>Loại địa điểm: </td>
                            <td ><select id="ddlLocationTypeDVK" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Quốc gia: </td>
                            <td ><select id="ddlNationalDVK" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Tỉnh/ thành phố: </td>
                            <td ><select id="ddlCityDVK" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Địa điểm: </td>
                            <td ><select id="ddlLocationDVK" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Nhà cung cấp: </td>
                            <td ><select id="ddlPartnerDVK" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Dịch vụ: </td>
                            <td ><select id="ddlServiceDVK" runat="server"> </select></td>
                        </tr> 
                        <tr>

                            <td>Loai ve</td>
                            <td><asp:DropDownList ID="ddlServiceType" runat="server" Width="70px"></asp:DropDownList></td>
                        </tr>                       
                        <tr class="PriceDoanService">
                            <td>Gia Doan</td>
                            <td><asp:TextBox ID="txtPriceDoanDVK" runat="server" Width="50px"></asp:TextBox></td>

                        </tr>
                        <tr class="PriceLeService">
                            <td>Giá người lớn: </td>
                            <td><asp:TextBox ID="txtPriceAdultsDVK" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr class="PriceLeService">
                            <td>Giá trẻ em: </td>
                            <td><asp:TextBox ID="txtPriceChildsDVK" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr class="PriceLeService">
                            <td>Giá trẻ nhỏ: </td>
                            <td><asp:TextBox ID="txtBabyChildsDVK" runat="server"></asp:TextBox></td>
                        </tr>

                        <tr class="PriceLeService PriceDoanService">
                            <td class="PriceDoanService">So Luong Doan</td>
                            <td class="PriceLeService">Số lượn NL:</td>
                            <td><asp:TextBox ID="txtQuantityAdultsDVK" runat="server" Width="50px"></asp:TextBox></td>

                        </tr>
                        <tr class="PriceLeService">
                            <td>Số lượng trẻ em: </td>
                            <td><asp:TextBox ID="txtQuantityChildDVK" runat="server" ></asp:TextBox></td>
                        </tr>
                        <tr class="PriceLeService">
                            <td>Số lượng trẻ nhỏ: </td>
                            <td><asp:TextBox ID="txtQuantityBabyDVK" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí: </td>
                            <td><asp:TextBox ID="txtTotalPriceDVK" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox ID="txtVATDVK" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú: </td>
                            <td><asp:TextBox ID="txtNoteDVK" TextMode="MultiLine" runat="server" Width="390px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td  class="button">
                                <input id="btnInsertDvk" type="button" value="Thêm" calculatorid="-1" />
                                <input id="btnDeleteDvk" class="btnDeleteDvk" type="button" value="Hủy" calculatorid="-1" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div> 
    <%-------------------------------------------------------------popup dich Huong dan vien------------------------%>
        <div class="popup-main popup-ticket-travelGuide">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/sua chiết tính huong dan vien<span class="close_search" onclick="closePopup('ticket-travelGuide')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    <table >
                        <tr >
                            <td>Loại HDV:</td>
                            <td><asp:DropDownList ID="ddlTravelGuideType" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Ngày bắt đầu: :</td>
                              <td><input type="text" id="dteBeginDateTravelGuide" placeholder="Clickk chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Ngày kết thúc: </td>
                            <td><input type="text" id="dteEndDateTravelGuide" placeholder="Click chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Tổng số ngày: </td>
                            <td class="tr"><asp:TextBox ID="txtQuantityDateTravelGuide" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ngôn ngữ: </td>
                            <td ><select id="ddlLanguageTravelGuide" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Giới tính: </td>
                            <td><asp:DropDownList ID="ddlGenderTravelGuide" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Trình độ: </td>
                            <td><asp:DropDownList ID="ddlLevelTravelGuide" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>HDV: </td>
                            <td><asp:DropDownList ID="ddlTravelGuide" runat="server"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>Tiền công: </td>
                            <td class="tr"><asp:TextBox ID="txtPriceTravelGuide" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tiền Tip: </td>
                            <td class="tr"><asp:TextBox ID="txtPriceTipTravelGuide" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>

                            <td>Chi Phi Khac</td>
                            <td class="tr"><asp:TextBox ID="txtPriceOrtherTravelGuide" runat="server" Width="50px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tong Chi Phi</td>
                            <td class="tr"><asp:TextBox ID="txtTotalPriceTravelGuide" runat="server" Width="50px"></asp:TextBox></td>

                        </tr>
                        <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox ID="txtVatTravelGuide" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>

                            <td>Ghi chú: </td>
                             <td class="tr"><asp:TextBox ID="txtNoteTravelGuide" TextMode="MultiLine" runat="server" Width="390px"></asp:TextBox></td>

                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <input id="btnInsertTravelGuide" class="btnInsertTravelGuide"  type="button" value="Them" calculatorid="-1" />
                                <input id="btnDeleteTravelGuide" class="btnDeleteTravelGuide"  type="button" value="Hủy" calculatorid="-1" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <%-------------------------------------------------------------popup bao hiem------------------------%>
        <div class="popup-main popup-ticket-insurance">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/sua chiết tính bao hiem<span class="close_search" onclick="closePopup('ticket-insurance')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    <table >
                        <tr >
                            <td>Nhà cung cấp: </td>
                            <td ><select id="ddlPartnerInsurance" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Bảo hiểm: </td>
                            <td ><select id="ddlInsurance" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Ngày bắt đầu: </td>
                            <td><input type="text" id="dteBeginDateInsurance" placeholder="Clic chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Ngày hết hạn: </td>
                            <td><input type="text" id="dteEndDateInsurance" placeholder="Click chọn ngày" readonly="readonly" runat="server" /></td>
                        </tr>
                        <tr>
                            <td>Số ngày bảo hiểm: </td>
                            <td><asp:Label runat="server" ID="lbCountNightInsurance"></asp:Label></td>
                        </tr>
                        <tr>
                            <td>Giá NL: </td>
                            <td><asp:TextBox id="txtPriceAdultInsurance" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá trẻ em: </td>
                            <td><asp:TextBox id="txtPriceChildInsurance" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá trẻ nhỏ: </td>
                            <td><asp:TextBox id="txtPriceBabyInsurance" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng NL: </td>
                            <td><asp:TextBox id="txtQuantityAdultInsurance" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng trẻ em: </td>
                            <td><asp:TextBox id="txtQuantityChildInsurance" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng trẻ nhỏ: </td>
                            <td><asp:TextBox id="txtQuantityBabyInsurance" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí: </td>
                            <td><asp:Label id="lbTotalPriceInsurance" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox ID="txtVATInsurance" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú: </td>
                            <td><asp:TextBox id="txtNoteInsurance" TextMode="MultiLine" runat="server" Width="390px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td  class="button">
						         <input  id="btnInsertInsurance" class="btnsave" type="button" value="Thêm" calculatorid="-1"/>
                                <input id="btnDeleteInsurance" class="btnDeleteInsurance"  type="button" value="Hủy" calculatorid="-1" />
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>      
    <%-------------------------------------------------------------popup visa------------------------%>
        <div class="popup-main popup-ticket-visa">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/sua chiết tính visa<span class="close_search" onclick="closePopup('ticket-visa')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    <table >
                        <tr >
                            <td>Nhà cung cấp: </td>
                            <td ><select id="ddlPartnerNameVisa" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Loại Visa: </td>
                            <td ><select id="ddlVisaTypeNameVisa" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Visa</td>
                            <td ><select id="ddlVisaNameVisa" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Giá người lớn: </td>
                            <td><asp:TextBox ID="txtPriceAdultsVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Chi phí dịch hồ sơ người lớn: </td>
                            <td><asp:TextBox ID="txtTranslateAdultVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Chi phí khác người lớn:</td>
                            <td><asp:TextBox ID="txtOtherCostAdultVisa" runat="server"></asp:TextBox></td>
                   
                        </tr>
                        <tr>
                            <td>Giá trẻ em: </td>
                             <td><asp:TextBox ID="txtPriceChildVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Chi phí dịch hồ sơ trẻ em: </td>
                              <td><asp:TextBox ID="txtTranslateChildVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Chi phí khác trẻ em: </td>
                             <td><asp:TextBox ID="txtOtherCostChildVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá trẻ nhỏ: </td>
                             <td><asp:TextBox ID="txtPriceBabyVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Chi phí dịch hồ sơ trẻ nhỏ: </td>
                            <td><asp:TextBox ID="txtTranslateBabyVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Chi phí khác trẻ nhỏ: </td>
                            <td><asp:TextBox ID="txtOtherCostBabyVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng người lớn: </td>
                           <td><asp:TextBox ID="txtQuantityAdultsVisa" runat="server"></asp:TextBox></td>
                   
                        </tr>
                        <tr>
                            <td>Số lượng trẻ em: </td>
                             <td><asp:TextBox ID="txtQuantityChildVisa" runat="server"></asp:TextBox></td>
                   
                        </tr>
                        <tr>
                            <td>Số lượng trẻ nhỏ: </td>
                             <td><asp:TextBox ID="txtQuantityBabyVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí: </td>
                            <td><asp:TextBox ID="txtTotalPriceVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox ID="txtVatVisa" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú: </td>
                            <td><asp:TextBox ID="txtNoteVisa" TextMode="MultiLine" runat="server" Width="390px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td  class="button">
                                <input id="btnInsertVisa" type="button" value="Thêm" calculatorid="-1" />
                                <input id="btnDeleteVisa" class="btnDeleteVisa" type="button" value="Hủy" calculatorid="-1" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>   
    <%-------------------------------------------------------------popup dich qua tang------------------------%>
        <div class="popup-main popup-ticket-gifts">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/sua chiết tính qua tang<span class="close_search" onclick="closePopup('ticket-gifts')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr >
                            <td>Loại quà: </td>
                            <td ><select id="ddlGiftsType" runat="server"> </select></td>
                        </tr>
                        <tr >
                            <td>Quà:</td>
                            <td ><select id="ddlGifts" runat="server"> </select></td>
                        </tr>
                        <tr>
                            <td>Số ngày: </td>
                            <td><asp:TextBox id="txtTotalDay" runat="server" ></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Quà/ngày khách NL: </td>
                            <td><asp:TextBox id="txtNLDay" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Quà/ngày khách trẻ em:</td>
                            <td><asp:TextBox id="txtTEDay" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Quà/ngày khách trẻ nhỏ:</td>
                            <td><asp:TextBox id="txtTNDay" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá NL: </td>
                            <td><asp:TextBox id="txtPriceAdultGifts" runat="server"></asp:TextBox></td>
                        <tr>
                            <td>Giá trẻ em: </td>
                            <td><asp:TextBox id="txtPriceChildGifts" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Giá trẻ nhỏ: </td>
                            <td><asp:TextBox id="txtPriceBabyGifts" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số khách NL: </td>
                            <td><asp:TextBox id="txtQuantityAdultGifts" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số khách trẻ em: </td>
                            <td><asp:TextBox id="txtQuantityChildGifts" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số khách trẻ nhỏ: </td>
                            <td><asp:TextBox id="txtQuantityBabyGifts" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí: </td>
                            <td><asp:Label id="lbTotalPriceGifts" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td>Vat: </td>
                            <td><asp:TextBox ID="txtVATGifts" runat="server" ></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú: </td>
                            <td><asp:TextBox ID="txtNote" TextMode="MultiLine" runat="server" Width="390px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td id="toolbar-save" class="button">
						        <input  id="btnInsertGifts" class="btnsave" type="button" value="Thêm" calculatorid="-1"/>
                                <input id="btnDeleteGifts" class="btnDeleteGifts"  type="button" value="Hủy" calculatorid="-1" />
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>   
    <%-------------------------------------------------------------popup dich Hoa Hong------------------------%>
        <div class="popup-main popup-ticket-commission">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Thêm/sua chiết tính hoa hong<span class="close_search" onclick="closePopup('ticket-commission')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left">
                    <table >
                        <tr >
                            <td>Người Nhận:</td>
                            <td><asp:TextBox ID="txtHoTenHH" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng NL:</td>
                             <td><asp:TextBox ID="txtSoNguoiLonHH" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng trẻ em:</td>
                            <td><asp:TextBox ID="txtSoTreEmHH" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Số lượng trẻ nhỏ:</td>
                            <td><asp:TextBox ID="txtSoTBabyHH" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Hoa hồng/ khách NL:</td>
                            <td><asp:TextBox ID="txtGiaNguoiLonHH" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Hoa hồng/ khách trẻ em:</td>
                            <td><asp:TextBox ID="txtGiaTreEmHH" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Hoa hồng/ khách trẻ nhỏ:</td>
                            <td><asp:TextBox ID="txtGiaBabyHH" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Tổng chi phí:</td>
                            <td><asp:TextBox ID="txtTongHH" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Vat:</td>
                            <td><asp:TextBox ID="txtVatHH" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Ghi chú: </td>
                            <td><asp:TextBox ID="txtNoteHH" TextMode="MultiLine" runat="server" Width="390px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td></td>
                             <td class="button">
                                <input id="btnInsertHH" type="button" value="Thêm" calculatorid="-1" />
                                <input id="btnDeleteHH" class="btnDeleteHH" type="button" value="Hủy" calculatorid="-1" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div> 
    <%-------------------------------------------------------------popup ghi chu ------------------------%>
    <div class="popup-main popup-profit-note1">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note1')">X</span></h3>
                
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote1" TextMode="MultiLine" runat="server" Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input  class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel"  onclick="hidePopup('profit-note1')"  type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note2">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note2')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote2" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note2')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note3">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note3')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote3" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note3')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note4">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note4')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote4" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note4')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note5">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note5')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote5" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note5')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note6">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note6')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote6" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note6')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note7">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note7')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote7" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note7')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note8">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note8')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote8" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note8')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note9">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note9')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote9" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note9')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note10">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note10')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote10" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note10')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note11">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note11')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote11" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note11')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note12">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note12')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote12" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note12')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note13">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note13')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote13" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note13')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note14">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note14')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote14" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note14')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note15">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note15')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote15" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note15')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="popup-main popup-profit-note16">
        <div class="search_K">
            <h3 class="frames-Conten-left-title_popup">Ghi chú<span class="close_search" onclick="closePopup('ticket-note16')">X</span></h3>
             
            <div class="m" style="float:left; width:100%">
                <div class="admin-left" >
                    <table>
                        <tr>
                            <td></td>
                            <td><asp:TextBox ID="ProfitNote16" TextMode="MultiLine" runat="server"  Width="390px" Height="100px"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td></td>
                            <td class="button">
						        <input class="btnInsertProfitNote" type="button" value="Thêm" />
                                <input class="cancel" onclick="hidePopup('profit-note16')"   type="button" value="Hủy"/>
					        </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    
    <script src="../js/jquery.Calculator.js"></script>
    <script type="text/javascript">
        var fncTotalCalculator = function () {
            TotalSalePriceCalculator('#<%=TotalSalePriceCaculatorAdults.ClientID%>', '#<%=TotalSalePriceCaculatorChild.ClientID%>',
                '#<%=TotalSalePriceCaculatorBaby.ClientID%>', '#<%=TotalSalePriceCaculator.ClientID%>',
                '#<%=ChiPhiQuanLyDoanhNghiep.ClientID%>', '<%=tourInfo.QuantityAdult%>',
                '<%=tourInfo.QuantityChild%>', '<%=tourInfo.QuantityBaby%>');
        };
        $(document).ready(function () {
            $('#<%=TotalSalePriceCaculatorAdults.ClientID%>').keyup(fncTotalCalculator);
            $('#<%=TotalSalePriceCaculatorChild.ClientID%>').keyup(fncTotalCalculator);
            $('#<%=TotalSalePriceCaculatorBaby.ClientID%>').keyup(fncTotalCalculator);
            $('#<%=TotalSalePriceCaculator.ClientID%>').keyup(fncTotalCalculator);
            $('#<%=ChiPhiQuanLyDoanhNghiep.ClientID%>').keyup(fncTotalCalculator);

            TotalPrice();

            CalculatorTour('#<%=txtQuantityAdultsTour.ClientID%>', '#<%=txtQuantityChildTour.ClientID%>', '#<%=txtQuantityBabyTour.ClientID%>',
            '#<%=dteBeginDateTour.ClientID%>', '#<%=ddlBeginHourTour.ClientID%>', '#<%=ddlBeginMinuteTour.ClientID%>',
            '#<%=dteEndDateTour.ClientID%>', '#<%=ddlEndHourTour.ClientID%>', '#<%=ddlEndMinuteTour.ClientID%>',
            '#<%=txtTotalDayTour.ClientID%>', '#<%=txtTotalNightTour.ClientID%>',
            '<%=tourInfo.QuantityAdult%>', '<%=tourInfo.QuantityChild%>', '<%=tourInfo.QuantityBaby%>',
            '<%=tourInfo.BeginDate.ToShortDateString()%>', '<%=tourInfo.BeginDate.Hour%>', '<%=tourInfo.BeginDate.Minute%>',
            '<%=tourInfo.EndDate.ToShortDateString()%>', '<%=tourInfo.EndDate.Hour%>', '<%=tourInfo.EndDate.Minute%>',
            '<%=tourInfo.QuantityDay%>', '<%=tourInfo.QuantityNight%>');

            CalculatorAir('#<%= txtTotalPriceAir.ClientID%>', '#<%= ddlScheduleAir.ClientID%>',
                '#<%= ddlFlightArrivalsAir.ClientID%>', '#<%= ddlConcernAir.ClientID%>',
            '<%= tourInfo.TourId %>', '#<%=ddlTicketAir.ClientID%>',
            '#<%=txtPriceAdultAir.ClientID%>', '#<%=txtPriceChildAir.ClientID%>',
            '#<%=dteGoDateAir.ClientID%>', '#<%=txtVatAir.ClientID%>',
            '<%= tourInfo.Season%>', '#<%= txtQuantityAdultsAir.ClientID%>',
            '#<%= txtQuantityChildAir.ClientID%>', '#<%=txtPriceBabyAir.ClientID%>',
            '#<%=txtQuantityBabyAir.ClientID%>', '#<%=txtNoteAir.ClientID%>', '<%=UserId%>');

            CalculatorCar('#<%= ddlScheduleCar.ClientID%>', '#<%= dteGoDateCar.ClientID%>',
                '#<%= txtQuantityCar.ClientID%>', '#<%= ddlSoChoCar.ClientID%>',
            '#<%= ddlConcernCar.ClientID%>', '#<%= ddlYearCar.ClientID%>',
            '#<%= txtPriceCar.ClientID%>', '#<%= txtTotalPriceCar.ClientID%>',
            '<%= tourInfo.Season%>', '<%= tourInfo.TourId%>', '#<%=txtVatCar.ClientID%>',
            '<%=tourInfo.QuantityAdult%>', '<%=tourInfo.QuantityChild%>', '#<%=txtNoteCar.ClientID%>', '<%=UserId%>');

            CalculatorStation('#<%= txtTotalPriceStation.ClientID%>', '#<%= ddlScheduleStation.ClientID%>',
                '#<%= ddlFlightArrivalsStation.ClientID%>', '#<%= ddlConcernStation.ClientID%>',
            '<%= tourInfo.TourId %>', '#<%=ddlTicketStation.ClientID%>',
            '#<%=txtPriceAdultsStation.ClientID%>', '#<%=txtPriceChildStation.ClientID%>',
            '#<%=dteGoDateStation.ClientID%>', '#<%=txtVatStation.ClientID%>',
            '<%= tourInfo.Season%>', '#<%= txtQuantityAdultsStation.ClientID%>',
            '#<%= txtQuantityChildStation.ClientID%>', '#<%=txtPriceBabyStation.ClientID%>',
            '#<%=txtQuantityBabyStation.ClientID%>', '#<%=txtNoteStation.ClientID%>', '<%=UserId%>');

            InsertCalculatorInsurance('#<%=ddlPartnerInsurance.ClientID%>', '#<%=ddlInsurance.ClientID%>',
                '#<%=dteBeginDateInsurance.ClientID%>', '#<%=dteEndDateInsurance.ClientID%>',
            '#<%=lbCountNightInsurance.ClientID%>', '#<%=txtPriceAdultInsurance.ClientID%>',
            '#<%=txtPriceChildInsurance.ClientID%>', '#<%=txtQuantityAdultInsurance.ClientID%>',
            '#<%=txtQuantityChildInsurance.ClientID%>', '#<%=txtVATInsurance.ClientID%>',
            '#<%=lbTotalPriceInsurance.ClientID%>', '<%=tourInfo.TourId%>',
            '#<%=txtPriceBabyInsurance.ClientID%>', '#<%=txtQuantityBabyInsurance.ClientID%>',
            '#<%=txtNoteInsurance.ClientID%>', '<%=UserId%>');

            CalculatorTravelGuide('#<%=ddlLanguageTravelGuide.ClientID%>', '#<%=ddlGenderTravelGuide.ClientID%>',
                '#<%=ddlLevelTravelGuide.ClientID%>', '#<%=ddlTravelGuide.ClientID%>',
            '#<%=ddlTravelGuideType.ClientID%>', '#<%=dteBeginDateTravelGuide.ClientID%>',
            '#<%=dteEndDateTravelGuide.ClientID%>', '#<%=txtQuantityDateTravelGuide.ClientID%>',
            '#<%=txtPriceTravelGuide.ClientID%>', '#<%=txtPriceTipTravelGuide.ClientID%>',
            '#<%=txtVatTravelGuide.ClientID%>', '#<%=txtTotalPriceTravelGuide.ClientID%>',
            '<%=tourInfo.BeginDate.ToShortDateString()%>', '<%=tourInfo.EndDate.ToShortDateString()%>',
            '<%=tourInfo.TourId%>', '<%=tourInfo.QuantityAdult%>', '<%=tourInfo.QuantityChild%>',
            '#<%=txtNoteTravelGuide.ClientID%>', '#<%=txtPriceOrtherTravelGuide.ClientID%>', '<%=UserId%>');

            var nationalItem = $('#<%=ddlNationalMenu.ClientID %>');
            var cityItem = $('#<%=ddlCityMenu.ClientID %>');
            var restaurantItem = $('#<%=ddlRestaurantMenu.ClientID %>');
            var restaurantTypeItem = $('#<%=ddlRestaurantTypeMenu.ClientID %>');
            var menuElement = $('#<%=ddlMenuMenu.ClientID %>');
            var menuTypeElement = $('#<%=ddlMenuTypeMenu.ClientID %>');
            var deginDate = $('#<%=dteBeginDateMenu.ClientID %>');
            var priceAdultsMenu = $('#<%=txtPriceAdultsMenu.ClientID %>');
            var priceChildsMenu = $('#<%=txtPriceChildsMenu.ClientID %>');

            var quantityAdultsMenu = $('#<%=txtQuantityAdultsMenu.ClientID %>');
            var quantityChildMenu = $('#<%=txtQuantityChildMenu.ClientID %>');
            var quantityBaby = $('#<%=txtQuantityBabyMenu.ClientID %>');
            var riceBaby = $('#<%=txtPriceBabyMenu.ClientID %>');

            var vatMenu = $('#<%=txtVATMenu.ClientID %>');
            var totalPriceMenu = $('#<%=txtTotalPriceMenu.ClientID %>');
            var note = $('#<%=txtNoteRestaurant.ClientID %>');
            var seasonTour = '<%= tourInfo.Season%>';
            var tourInfo = '<%= tourInfo.TourId%>';

            CalculatorVisa($('#<%=ddlPartnerNameVisa.ClientID %>'), $('#<%=ddlVisaTypeNameVisa.ClientID %>'),
                $('#<%=ddlVisaNameVisa.ClientID %>'), $('#<%=txtPriceAdultsVisa.ClientID %>'),
            $('#<%=txtTranslateAdultVisa.ClientID %>'), $('#<%=txtOtherCostAdultVisa.ClientID %>'),
            $('#<%=txtPriceChildVisa.ClientID %>'), $('#<%=txtTranslateChildVisa.ClientID %>'),
            $('#<%=txtOtherCostChildVisa.ClientID %>'), $('#<%=txtQuantityAdultsVisa.ClientID %>'),
            $('#<%=txtQuantityChildVisa.ClientID %>'), $('#<%=txtVatVisa.ClientID %>'),
            $('#<%=txtTotalPriceVisa.ClientID %>'), $('#<%=txtNoteVisa.ClientID %>'),
            seasonTour, tourInfo,
            $('#<%=txtPriceBabyVisa.ClientID %>'), '#<%=txtTranslateBabyVisa.ClientID %>',
            '#<%=txtOtherCostBabyVisa.ClientID %>', '#<%=txtQuantityBabyVisa.ClientID %>', '<%=UserId%>');

            CalculatorMenu(nationalItem, cityItem, restaurantItem, restaurantTypeItem,
                menuElement, menuTypeElement, deginDate, priceAdultsMenu, priceChildsMenu, quantityAdultsMenu,
                quantityChildMenu, vatMenu, totalPriceMenu, note, seasonTour, tourInfo, quantityBaby, riceBaby, '<%=UserId%>');

            CalculatorHH($('#<%=txtHoTenHH.ClientID %>'), $('#<%=txtSoNguoiLonHH.ClientID %>'), $('#<%=txtSoTreEmHH.ClientID %>'),
                $('#<%=txtGiaNguoiLonHH.ClientID %>'), $('#<%=txtGiaTreEmHH.ClientID %>'), $('#<%=txtVatHH.ClientID %>'),
            $('#<%=txtTongHH.ClientID %>'), seasonTour, tourInfo, $('#<%=txtGiaBabyHH.ClientID %>'),
            $('#<%=txtSoTBabyHH.ClientID %>'), '#<%=txtNoteHH.ClientID %>', '<%=UserId%>');

            CalculatorDvk($('#<%=ddlLocationTypeDVK.ClientID %>'), $('#<%=ddlNationalDVK.ClientID %>'), $('#<%=ddlCityDVK.ClientID %>')
                , $('#<%=ddlLocationDVK.ClientID %>'), $('#<%=ddlPartnerDVK.ClientID %>'), $('#<%=ddlServiceDVK.ClientID %>')
            , $('#<%=dteBeginDateDVK.ClientID %>'), $('#<%=txtPriceAdultsDVK.ClientID %>'), $('#<%=txtPriceChildsDVK.ClientID %>')
            , $('#<%=txtQuantityAdultsDVK.ClientID %>'), $('#<%=txtQuantityChildDVK.ClientID %>'), $('#<%=txtVATDVK.ClientID %>')
            , $('#<%=txtTotalPriceDVK.ClientID %>'), $('#<%=txtNoteDVK.ClientID %>'), seasonTour, tourInfo
            , $('#<%=txtBabyChildsDVK.ClientID %>'), $('#<%=txtQuantityBabyDVK.ClientID %>'), $('#<%=txtPriceDoanDVK.ClientID%>')
            , ('<%=tourInfo.QuantityAdult%>'), '<%=tourInfo.QuantityChild%>', $('#<%=ddlServiceType.ClientID %>'), '<%=UserId%>');

            InsertCalculatorHotel('#<%=ddlHotelType.ClientID%>', '#<%=ddlNationalHotel.ClientID%>', '#<%=ddlCityHotel.ClientID%>', '#<%=ddlHotel.ClientID%>',
                '<%=tourInfo.TourId%>', '#<%=ddlRoomTypeHotel.ClientID%>', '#<%=dteBeginDateHotel.ClientID%>', '#<%=dteEndDateHotel.ClientID%>',
            '#<%=txtQuantityAdultsHotel.ClientID%>', '#<%=txtQuantityChildHotel.ClientID%>', '#<%=txtPriceAdultsRoomHotel.ClientID%>',
            '#<%=txtPriceChildsRoomHotel.ClientID%>', '#<%=txtVATHotel.ClientID%>', '#<%=lbTotalPriceRoomHotel.ClientID%>',
            '#<%=lbCountNightHotel.ClientID%>', '<%= tourInfo.Season%>', '<%= tourInfo.TourId%>',
            '#<%=txtPriceBabyRoomHotel.ClientID%>', '#<%=txtQuantityBabyHotel.ClientID%>', '#<%=txtNoteHotel.ClientID%>', '<%=UserId%>');

            InsertCalculatorShip('#<%=ddlHotelTypeShip.ClientID%>', '#<%=ddlNationalShip.ClientID%>', '#<%=ddlCityShip.ClientID%>', '#<%=ddlHotelShip.ClientID%>',
                '<%=tourInfo.TourId%>', '#<%=ddlRoomTypeShip.ClientID%>', '#<%=dteBeginDateShip.ClientID%>', '#<%=dteEndDateShip.ClientID%>',
            '#<%=txtQuantityAdultsShip.ClientID%>', '#<%=txtQuantityChildShip.ClientID%>', '#<%=txtPriceAdultsRoomShip.ClientID%>',
            '#<%=txtPriceChildsRoomShip.ClientID%>', '#<%=txtVATShip.ClientID%>', '#<%=lbTotalPriceRoomShip.ClientID%>',
            '#<%=lbCountNightShip.ClientID%>', '<%= tourInfo.Season%>', '<%= tourInfo.TourId%>', '#<%=txtPriceBabyRoomShip.ClientID%>',
            '#<%=txtQuantityBabyShip.ClientID%>', '#<%=ddlScheduleShip.ClientID%>', '#<%=txtNoteShip.ClientID%>', '<%=UserId%>');

            InsertCalculatorGifts('#<%=ddlGiftsType.ClientID%>', '#<%=ddlGifts.ClientID%>',
                '#<%=txtTotalDay.ClientID%>', '#<%=txtNLDay.ClientID%>',
            '#<%=txtTEDay.ClientID%>', '#<%=txtTNDay.ClientID%>',
            '#<%=txtPriceAdultGifts.ClientID%>', '#<%=txtPriceChildGifts.ClientID%>',
            '#<%=txtPriceBabyGifts.ClientID%>', '#<%=txtQuantityAdultGifts.ClientID%>',
            '#<%=txtQuantityChildGifts.ClientID%>', '#<%=txtQuantityBabyGifts.ClientID%>',
            '#<%=txtVATGifts.ClientID%>', '#<%=txtNote.ClientID%>',
            '#<%=lbTotalPriceGifts.ClientID%>', '<%=tourInfo.TourId%>', '<%=UserId%>');

            ProfitCalculator('#<%=TotalSalePriceCaculatorAdults.ClientID%>', '#<%=TotalSalePriceCaculatorChild.ClientID%>',
                '#<%=TotalSalePriceCaculatorBaby.ClientID%>', '#<%=TotalSalePriceCaculator.ClientID%>',
            '#<%=ChiPhiQuanLyDoanhNghiep.ClientID%>', '#<%=ProfitNote1.ClientID%>', '#<%=ProfitNote2.ClientID%>',
            '#<%=ProfitNote3.ClientID%>', '#<%=ProfitNote4.ClientID%>', '#<%=ProfitNote5.ClientID%>',
            '#<%=ProfitNote6.ClientID%>', '#<%=ProfitNote7.ClientID%>', '#<%=ProfitNote8.ClientID%>',
            '#<%=ProfitNote9.ClientID%>', '#<%=ProfitNote10.ClientID%>', '#<%=ProfitNote11.ClientID%>',
            '#<%=ProfitNote12.ClientID%>', '#<%=ProfitNote13.ClientID%>', '#<%=ProfitNote14.ClientID%>',
            '#<%=ProfitNote15.ClientID%>', '#<%=ProfitNote16.ClientID%>', '<%=tourInfo.TourId%>',
            '<%=profitCalculatorInfo.ProfitCalculatorId%>');

            fncTotalCalculator();

        });
</script>
  
</asp:content>
